irq_work: Warn if there's still work on cpu_down
[deliverable/linux.git] / include / linux / irq_work.h
CommitLineData
e360adbe
PZ
1#ifndef _LINUX_IRQ_WORK_H
2#define _LINUX_IRQ_WORK_H
3
38aaf809
HY
4#include <linux/llist.h>
5
e360adbe 6struct irq_work {
38aaf809
HY
7 unsigned long flags;
8 struct llist_node llnode;
e360adbe
PZ
9 void (*func)(struct irq_work *);
10};
11
12static inline
38aaf809 13void init_irq_work(struct irq_work *work, void (*func)(struct irq_work *))
e360adbe 14{
38aaf809
HY
15 work->flags = 0;
16 work->func = func;
e360adbe
PZ
17}
18
38aaf809 19bool irq_work_queue(struct irq_work *work);
e360adbe 20void irq_work_run(void);
38aaf809 21void irq_work_sync(struct irq_work *work);
e360adbe 22
00b42959
FW
23#ifdef CONFIG_IRQ_WORK
24bool irq_work_needs_cpu(void);
25#else
26static bool irq_work_needs_cpu(void) { return false; }
27#endif
28
e360adbe 29#endif /* _LINUX_IRQ_WORK_H */
This page took 0.216443 seconds and 5 git commands to generate.