Ralf Baechle | bdc92d74 | 2013-05-21 16:59:19 +0200 | [diff] [blame] | 1 | #ifndef __ASM_IDLE_H |
| 2 | #define __ASM_IDLE_H |
| 3 | |
| 4 | #include <linux/linkage.h> |
| 5 | |
| 6 | extern void (*cpu_wait)(void); |
Ralf Baechle | 087d990 | 2013-05-21 17:33:32 +0200 | [diff] [blame] | 7 | extern void r4k_wait(void); |
| 8 | extern asmlinkage void __r4k_wait(void); |
Ralf Baechle | bdc92d74 | 2013-05-21 16:59:19 +0200 | [diff] [blame] | 9 | extern void r4k_wait_irqoff(void); |
| 10 | extern void __pastwait(void); |
| 11 | |
Ralf Baechle | f94d9a8 | 2013-05-21 17:30:36 +0200 | [diff] [blame] | 12 | static inline int using_rollback_handler(void) |
| 13 | { |
| 14 | return cpu_wait == r4k_wait; |
| 15 | } |
| 16 | |
| 17 | static inline int address_is_in_r4k_wait_irqoff(unsigned long addr) |
| 18 | { |
| 19 | return addr >= (unsigned long)r4k_wait_irqoff && |
| 20 | addr < (unsigned long)__pastwait; |
| 21 | } |
| 22 | |
Ralf Baechle | bdc92d74 | 2013-05-21 16:59:19 +0200 | [diff] [blame] | 23 | #endif /* __ASM_IDLE_H */ |