Commit | Line | Data |
---|---|---|
36310736 FW |
1 | #ifndef __ASM_IRQ_WORK_H |
2 | #define __ASM_IRQ_WORK_H | |
3 | ||
ceab3fe6 CM |
4 | #ifdef CONFIG_SMP |
5 | ||
36310736 FW |
6 | #include <asm/smp.h> |
7 | ||
8 | static inline bool arch_irq_work_has_interrupt(void) | |
9 | { | |
10 | return !!__smp_cross_call; | |
11 | } | |
12 | ||
ceab3fe6 CM |
13 | #else |
14 | ||
15 | static inline bool arch_irq_work_has_interrupt(void) | |
16 | { | |
17 | return false; | |
18 | } | |
19 | ||
20 | #endif | |
21 | ||
36310736 | 22 | #endif /* __ASM_IRQ_WORK_H */ |