2014-08-16 23:47:15 +07:00
|
|
|
#ifndef _ASM_IRQ_WORK_H
|
|
|
|
#define _ASM_IRQ_WORK_H
|
|
|
|
|
2016-01-27 04:12:04 +07:00
|
|
|
#include <asm/cpufeature.h>
|
2014-08-16 23:47:15 +07:00
|
|
|
|
2017-08-28 13:47:35 +07:00
|
|
|
#ifdef CONFIG_X86_LOCAL_APIC
|
2014-08-16 23:47:15 +07:00
|
|
|
static inline bool arch_irq_work_has_interrupt(void)
|
|
|
|
{
|
2016-04-05 03:25:00 +07:00
|
|
|
return boot_cpu_has(X86_FEATURE_APIC);
|
2014-08-16 23:47:15 +07:00
|
|
|
}
|
2017-08-28 13:47:35 +07:00
|
|
|
extern void arch_irq_work_raise(void);
|
|
|
|
#else
|
|
|
|
static inline bool arch_irq_work_has_interrupt(void)
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
#endif
|
2014-08-16 23:47:15 +07:00
|
|
|
|
|
|
|
#endif /* _ASM_IRQ_WORK_H */
|