2014-08-17 00:48:05 +08:00
|
|
|
#ifndef __ASM_IRQ_WORK_H
|
|
|
|
#define __ASM_IRQ_WORK_H
|
|
|
|
|
2014-10-22 00:01:07 +08:00
|
|
|
#ifdef CONFIG_SMP
|
|
|
|
|
2014-08-17 00:48:05 +08:00
|
|
|
#include <asm/smp.h>
|
|
|
|
|
|
|
|
static inline bool arch_irq_work_has_interrupt(void)
|
|
|
|
{
|
|
|
|
return !!__smp_cross_call;
|
|
|
|
}
|
|
|
|
|
2014-10-22 00:01:07 +08:00
|
|
|
#else
|
|
|
|
|
|
|
|
static inline bool arch_irq_work_has_interrupt(void)
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2014-08-17 00:48:05 +08:00
|
|
|
#endif /* __ASM_IRQ_WORK_H */
|