diff options
Diffstat (limited to 'include/asm-x86/irqflags_32.h')
-rw-r--r-- | include/asm-x86/irqflags_32.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/asm-x86/irqflags_32.h b/include/asm-x86/irqflags_32.h index eff8585cb741..d058b04e0083 100644 --- a/include/asm-x86/irqflags_32.h +++ b/include/asm-x86/irqflags_32.h | |||
@@ -160,4 +160,17 @@ static inline int raw_irqs_disabled(void) | |||
160 | # define TRACE_IRQS_OFF | 160 | # define TRACE_IRQS_OFF |
161 | #endif | 161 | #endif |
162 | 162 | ||
163 | #ifdef CONFIG_DEBUG_LOCK_ALLOC | ||
164 | # define LOCKDEP_SYS_EXIT \ | ||
165 | pushl %eax; \ | ||
166 | pushl %ecx; \ | ||
167 | pushl %edx; \ | ||
168 | call lockdep_sys_exit; \ | ||
169 | popl %edx; \ | ||
170 | popl %ecx; \ | ||
171 | popl %eax; | ||
172 | #else | ||
173 | # define LOCKDEP_SYS_EXIT | ||
174 | #endif | ||
175 | |||
163 | #endif | 176 | #endif |