Commit abcbf5d2 authored by Philippe Gerum's avatar Philippe Gerum Committed by Jan Kiszka

cobalt/inband_work: dovetail: provide for deferred in-band calls

Dovetail enables irq_work for deferring the execution of a routine
until the in-band stage is active again on the current CPU, we don't
need to provide for any additional mechanism. Therefore we just need
to wrap the pipeline interface calls to the irq_work API.
Signed-off-by: Philippe Gerum's avatarPhilippe Gerum <>
Signed-off-by: Jan Kiszka's avatarJan Kiszka <>
parent a768a5c0
* SPDX-License-Identifier: GPL-2.0
* Copyright (C) 2020 Philippe Gerum <>
#include <linux/irq_work.h>
* This field must be named inband_work and appear first in the
* container work struct.
struct pipeline_inband_work {
struct irq_work work;
#define PIPELINE_INBAND_WORK_INITIALIZER(__work, __handler) \
{ \
.work = { \
.func = (void (*)(struct irq_work *)) \
__handler, \
.flags = ATOMIC_INIT(0), \
}, \
#define pipeline_post_inband_work(__work) \
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment