X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=arch%2Farm64%2Finclude%2Fasm%2Firq_work.h;h=b4f6b19a8a685d0adba9b35534b6782b79b81043;hb=d506aa68c23db708ad45ca8c17f0d7f5d7029a37;hp=8e24ef3f7c82c7c9dc7af7ea9b07c34ed27a7631;hpb=1ee07ef6b5db7235b133ee257a3adf507697e6b3;p=firefly-linux-kernel-4.4.55.git diff --git a/arch/arm64/include/asm/irq_work.h b/arch/arm64/include/asm/irq_work.h index 8e24ef3f7c82..b4f6b19a8a68 100644 --- a/arch/arm64/include/asm/irq_work.h +++ b/arch/arm64/include/asm/irq_work.h @@ -1,6 +1,8 @@ #ifndef __ASM_IRQ_WORK_H #define __ASM_IRQ_WORK_H +#ifdef CONFIG_SMP + #include static inline bool arch_irq_work_has_interrupt(void) @@ -8,4 +10,13 @@ static inline bool arch_irq_work_has_interrupt(void) return !!__smp_cross_call; } +#else + +static inline bool arch_irq_work_has_interrupt(void) +{ + return false; +} + +#endif + #endif /* __ASM_IRQ_WORK_H */