aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/irqflags.h18
1 files changed, 8 insertions, 10 deletions
diff --git a/include/linux/irqflags.h b/include/linux/irqflags.h
index 74bde13224c9..f2993512b3b5 100644
--- a/include/linux/irqflags.h
+++ b/include/linux/irqflags.h
@@ -52,10 +52,10 @@
52# define start_critical_timings() do { } while (0) 52# define start_critical_timings() do { } while (0)
53#endif 53#endif
54 54
55#ifdef CONFIG_TRACE_IRQFLAGS_SUPPORT
56
57#include <asm/irqflags.h> 55#include <asm/irqflags.h>
58 56
57#ifdef CONFIG_TRACE_IRQFLAGS_SUPPORT
58
59#define local_irq_enable() \ 59#define local_irq_enable() \
60 do { trace_hardirqs_on(); raw_local_irq_enable(); } while (0) 60 do { trace_hardirqs_on(); raw_local_irq_enable(); } while (0)
61#define local_irq_disable() \ 61#define local_irq_disable() \
@@ -84,21 +84,20 @@
84 * The local_irq_*() APIs are equal to the raw_local_irq*() 84 * The local_irq_*() APIs are equal to the raw_local_irq*()
85 * if !TRACE_IRQFLAGS. 85 * if !TRACE_IRQFLAGS.
86 */ 86 */
87# define raw_local_irq_disable() local_irq_disable() 87#define local_irq_disable() raw_local_irq_disable()
88# define raw_local_irq_enable() local_irq_enable() 88#define local_irq_enable() raw_local_irq_enable()
89# define raw_local_irq_save(flags) \ 89#define local_irq_save(flags) \
90 do { \ 90 do { \
91 typecheck(unsigned long, flags); \ 91 typecheck(unsigned long, flags); \
92 local_irq_save(flags); \ 92 raw_local_irq_save(flags); \
93 } while (0) 93 } while (0)
94# define raw_local_irq_restore(flags) \ 94# define local_irq_restore(flags) \
95 do { \ 95 do { \
96 typecheck(unsigned long, flags); \ 96 typecheck(unsigned long, flags); \
97 local_irq_restore(flags); \ 97 raw_local_irq_restore(flags); \
98 } while (0) 98 } while (0)
99#endif /* CONFIG_TRACE_IRQFLAGS_SUPPORT */ 99#endif /* CONFIG_TRACE_IRQFLAGS_SUPPORT */
100 100
101#ifdef CONFIG_TRACE_IRQFLAGS_SUPPORT
102#define safe_halt() \ 101#define safe_halt() \
103 do { \ 102 do { \
104 trace_hardirqs_on(); \ 103 trace_hardirqs_on(); \
@@ -124,6 +123,5 @@
124 typecheck(unsigned long, flags); \ 123 typecheck(unsigned long, flags); \
125 raw_irqs_disabled_flags(flags); \ 124 raw_irqs_disabled_flags(flags); \
126}) 125})
127#endif /* CONFIG_X86 */
128 126
129#endif 127#endif