irq_work.h 397 B

1234567891011121314151617181920
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _ASM_IRQ_WORK_H
  3. #define _ASM_IRQ_WORK_H
  4. #include <asm/cpufeature.h>
  5. #ifdef CONFIG_X86_LOCAL_APIC
  6. static inline bool arch_irq_work_has_interrupt(void)
  7. {
  8. return boot_cpu_has(X86_FEATURE_APIC);
  9. }
  10. extern void arch_irq_work_raise(void);
  11. #else
  12. static inline bool arch_irq_work_has_interrupt(void)
  13. {
  14. return false;
  15. }
  16. #endif
  17. #endif /* _ASM_IRQ_WORK_H */