summaryrefslogtreecommitdiff
path: root/arch/arm64/include/asm/irq_work.h
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2014-08-16 20:48:05 +0400
committerFrederic Weisbecker <fweisbec@gmail.com>2014-09-13 20:46:13 +0400
commit3631073659d0aafeaa52227bb61a100efaf901dc (patch)
treec524a0c470c42151d674b501fe84247b67dc7ba3 /arch/arm64/include/asm/irq_work.h
parent09f6edd424218eb69078551b2ecfada1f2d098eb (diff)
downloadlinux-3631073659d0aafeaa52227bb61a100efaf901dc.tar.xz
arm64: Tell irq work about self IPI support
ARM64 irq work self-IPI support depends on __smp_cross_call to point to some relevant IRQ controller operations. This information should be available after the call to init_IRQ(). Lets implement arch_irq_work_has_interrupt() accordingly. Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Acked-by: Catalin Marinas <catalin.marinas@arm.com> 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> Cc: Will Deacon <will.deacon@arm.com> Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Diffstat (limited to 'arch/arm64/include/asm/irq_work.h')
-rw-r--r--arch/arm64/include/asm/irq_work.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/irq_work.h b/arch/arm64/include/asm/irq_work.h
new file mode 100644
index 000000000000..8e24ef3f7c82
--- /dev/null
+++ b/arch/arm64/include/asm/irq_work.h
@@ -0,0 +1,11 @@
+#ifndef __ASM_IRQ_WORK_H
+#define __ASM_IRQ_WORK_H
+
+#include <asm/smp.h>
+
+static inline bool arch_irq_work_has_interrupt(void)
+{
+ return !!__smp_cross_call;
+}
+
+#endif /* __ASM_IRQ_WORK_H */