forked from luck/tmp_suning_uos_patched
3631073659
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>
12 lines
189 B
C
12 lines
189 B
C
#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 */
|