]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/asm-x86/irqflags_32.h
Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild
[karo-tx-linux.git] / include / asm-x86 / irqflags_32.h
index eff8585cb741f777b91c518c63666d59d3a6d4a2..d058b04e0083a2e1aa02f59b6ea6c42987188f8a 100644 (file)
@@ -160,4 +160,17 @@ static inline int raw_irqs_disabled(void)
 # define TRACE_IRQS_OFF
 #endif
 
+#ifdef CONFIG_DEBUG_LOCK_ALLOC
+# define LOCKDEP_SYS_EXIT                      \
+       pushl %eax;                             \
+       pushl %ecx;                             \
+       pushl %edx;                             \
+       call lockdep_sys_exit;                  \
+       popl %edx;                              \
+       popl %ecx;                              \
+       popl %eax;
+#else
+# define LOCKDEP_SYS_EXIT
+#endif
+
 #endif