aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/irq_work.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/irq_work.h')
-rw-r--r--include/linux/irq_work.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/include/linux/irq_work.h b/include/linux/irq_work.h
index 0e81035b678f..b11fcdfd0770 100644
--- a/include/linux/irq_work.h
+++ b/include/linux/irq_work.h
@@ -13,10 +13,13 @@
13 * busy NULL, 2 -> {free, claimed} : callback in progress, can be claimed 13 * busy NULL, 2 -> {free, claimed} : callback in progress, can be claimed
14 */ 14 */
15 15
16#define IRQ_WORK_PENDING 1UL 16#define IRQ_WORK_PENDING BIT(0)
17#define IRQ_WORK_BUSY 2UL 17#define IRQ_WORK_BUSY BIT(1)
18#define IRQ_WORK_FLAGS 3UL 18
19#define IRQ_WORK_LAZY 4UL /* Doesn't want IPI, wait for tick */ 19/* Doesn't want IPI, wait for tick: */
20#define IRQ_WORK_LAZY BIT(2)
21
22#define IRQ_WORK_CLAIMED (IRQ_WORK_PENDING | IRQ_WORK_BUSY)
20 23
21struct irq_work { 24struct irq_work {
22 unsigned long flags; 25 unsigned long flags;