xref: /linux/arch/x86/include/asm/irq_work.h (revision 06d07429858317ded2db7986113a9e0129cd599b)
1*b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
23010279fSFrederic Weisbecker #ifndef _ASM_IRQ_WORK_H
33010279fSFrederic Weisbecker #define _ASM_IRQ_WORK_H
43010279fSFrederic Weisbecker 
5cd4d09ecSBorislav Petkov #include <asm/cpufeature.h>
63010279fSFrederic Weisbecker 
7a45525b5SThomas Gleixner #ifdef CONFIG_X86_LOCAL_APIC
arch_irq_work_has_interrupt(void)83010279fSFrederic Weisbecker static inline bool arch_irq_work_has_interrupt(void)
93010279fSFrederic Weisbecker {
1093984fbdSBorislav Petkov 	return boot_cpu_has(X86_FEATURE_APIC);
113010279fSFrederic Weisbecker }
12a45525b5SThomas Gleixner #else
arch_irq_work_has_interrupt(void)13a45525b5SThomas Gleixner static inline bool arch_irq_work_has_interrupt(void)
14a45525b5SThomas Gleixner {
15a45525b5SThomas Gleixner 	return false;
16a45525b5SThomas Gleixner }
17a45525b5SThomas Gleixner #endif
183010279fSFrederic Weisbecker 
193010279fSFrederic Weisbecker #endif /* _ASM_IRQ_WORK_H */
20