summaryrefslogtreecommitdiffstats
path: root/include/asm-generic/irq_work.h
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2014-09-06 15:43:02 +0200
committerFrederic Weisbecker <fweisbec@gmail.com>2014-09-13 18:38:07 +0200
commitc5c38ef3d70377dc504a6a3f611a3ec814bc757b (patch)
treea2ff73cef2176bc5a94b7ed4944915102428b52e /include/asm-generic/irq_work.h
parentnohz: Move nohz full init call to tick init (diff)
downloadlinux-c5c38ef3d70377dc504a6a3f611a3ec814bc757b.tar.xz
linux-c5c38ef3d70377dc504a6a3f611a3ec814bc757b.zip
irq_work: Introduce arch_irq_work_has_interrupt()
The nohz full code needs irq work to trigger its own interrupt so that the subsystem can work even when the tick is stopped. Lets introduce arch_irq_work_has_interrupt() that archs can override to tell about their support for this ability. Signed-off-by: Peter Zijlstra <peterz@infradead.org> Cc: Ingo Molnar <mingo@kernel.org> Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Diffstat (limited to 'include/asm-generic/irq_work.h')
-rw-r--r--include/asm-generic/irq_work.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/asm-generic/irq_work.h b/include/asm-generic/irq_work.h
new file mode 100644
index 000000000000..a44f452c6590
--- /dev/null
+++ b/include/asm-generic/irq_work.h
@@ -0,0 +1,10 @@
+#ifndef __ASM_IRQ_WORK_H
+#define __ASM_IRQ_WORK_H
+
+static inline bool arch_irq_work_has_interrupt(void)
+{
+ return false;
+}
+
+#endif /* __ASM_IRQ_WORK_H */
+