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