Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Chris Metcalf | b340c65 | 2015-03-23 11:21:23 -0400 | [diff] [blame] | 2 | #ifndef __ASM_IRQ_WORK_H |
3 | #define __ASM_IRQ_WORK_H | ||||
4 | |||||
5 | static inline bool arch_irq_work_has_interrupt(void) | ||||
6 | { | ||||
7 | #ifdef CONFIG_SMP | ||||
8 | extern bool self_interrupt_ok; | ||||
9 | return self_interrupt_ok; | ||||
10 | #else | ||||
11 | return false; | ||||
12 | #endif | ||||
13 | } | ||||
14 | |||||
15 | #endif /* __ASM_IRQ_WORK_H */ |