[RFC PATCH 7/9] arm64: Tell irq work about self IPI support

From: Frederic Weisbecker
Date: Thu Aug 21 2014 - 10:54:38 EST


ARM64 irq work 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_own_interrupt() accordingly.

Cc: Catalin Iacob <iacobcatalin@xxxxxxxxx>
Cc: Catalin Marinas <catalin.marinas@xxxxxxx>
Cc: Dave Jones <davej@xxxxxxxxxx>
Cc: Ingo Molnar <mingo@xxxxxxxxxx>
Cc: Larry Bassel <larry.bassel@xxxxxxxxxx>
Cc: Paul E. McKenney <paulmck@xxxxxxxxxxxxxxxxxx>
Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
Signed-off-by: Frederic Weisbecker <fweisbec@xxxxxxxxx>
---
arch/arm64/kernel/smp.c | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/arch/arm64/kernel/smp.c b/arch/arm64/kernel/smp.c
index 4743397..b3e8b9e 100644
--- a/arch/arm64/kernel/smp.c
+++ b/arch/arm64/kernel/smp.c
@@ -534,6 +534,11 @@ void arch_irq_work_raise(void)
if (__smp_cross_call)
smp_cross_call(cpumask_of(smp_processor_id()), IPI_IRQ_WORK);
}
+
+int __init arch_irq_work_has_own_interrupt(void)
+{
+ return !!__smp_cross_call;
+}
#endif

static DEFINE_RAW_SPINLOCK(stop_lock);
--
1.8.3.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/