irq_work.h 283 B

123456789101112131415
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __ASM_IRQ_WORK_H
  3. #define __ASM_IRQ_WORK_H
  4. static inline bool arch_irq_work_has_interrupt(void)
  5. {
  6. #ifdef CONFIG_SMP
  7. extern bool self_interrupt_ok;
  8. return self_interrupt_ok;
  9. #else
  10. return false;
  11. #endif
  12. }
  13. #endif /* __ASM_IRQ_WORK_H */