xref: /linux/arch/x86/include/asm/irq_work.h (revision 26b433d0da062d6e19d75350c0171d3cf8ff560d)
1 #ifndef _ASM_IRQ_WORK_H
2 #define _ASM_IRQ_WORK_H
3 
4 #include <asm/cpufeature.h>
5 
6 #ifdef CONFIG_X86_LOCAL_APIC
7 static inline bool arch_irq_work_has_interrupt(void)
8 {
9 	return boot_cpu_has(X86_FEATURE_APIC);
10 }
11 extern void arch_irq_work_raise(void);
12 #else
13 static inline bool arch_irq_work_has_interrupt(void)
14 {
15 	return false;
16 }
17 #endif
18 
19 #endif /* _ASM_IRQ_WORK_H */
20