aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-09-14 08:43:39 -0400
committerIngo Molnar <mingo@elte.hu>2008-09-14 08:43:39 -0400
commit30742d5c2277c325fb0e9d2d817d55a19995fe8f (patch)
tree7a548793a27f657b8fe9bf4b0c329b4d6b0c5856 /include/linux
parent53b9d87f41a3d8838210ad7cdef02d814817ce85 (diff)
Revert "lockdep: fix compilation when CONFIG_TRACE_IRQFLAGS_SUPPORT is not set"
This reverts commit bd8fbdee6562ee526f3c2582a3b373ef195015dd. This broke the powerpc build - more fixes are needed before we can undo this revert.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/irqflags.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/include/linux/irqflags.h b/include/linux/irqflags.h
index f2993512b3b5..74bde13224c9 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#include <asm/irqflags.h>
56
57#ifdef CONFIG_TRACE_IRQFLAGS_SUPPORT 55#ifdef CONFIG_TRACE_IRQFLAGS_SUPPORT
58 56
57#include <asm/irqflags.h>
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,20 +84,21 @@
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 local_irq_disable() raw_local_irq_disable() 87# define raw_local_irq_disable() local_irq_disable()
88#define local_irq_enable() raw_local_irq_enable() 88# define raw_local_irq_enable() local_irq_enable()
89#define local_irq_save(flags) \ 89# define raw_local_irq_save(flags) \
90 do { \ 90 do { \
91 typecheck(unsigned long, flags); \ 91 typecheck(unsigned long, flags); \
92 raw_local_irq_save(flags); \ 92 local_irq_save(flags); \
93 } while (0) 93 } while (0)
94# define local_irq_restore(flags) \ 94# define raw_local_irq_restore(flags) \
95 do { \ 95 do { \
96 typecheck(unsigned long, flags); \ 96 typecheck(unsigned long, flags); \
97 raw_local_irq_restore(flags); \ 97 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
101#define safe_halt() \ 102#define safe_halt() \
102 do { \ 103 do { \
103 trace_hardirqs_on(); \ 104 trace_hardirqs_on(); \
@@ -123,5 +124,6 @@
123 typecheck(unsigned long, flags); \ 124 typecheck(unsigned long, flags); \
124 raw_irqs_disabled_flags(flags); \ 125 raw_irqs_disabled_flags(flags); \
125}) 126})
127#endif /* CONFIG_X86 */
126 128
127#endif 129#endif