]> err.no Git - linux-2.6/commitdiff
[PATCH] pi-futex: introduce WARN_ON_SMP
authorIngo Molnar <mingo@elte.hu>
Tue, 27 Jun 2006 09:54:50 +0000 (02:54 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 28 Jun 2006 00:32:46 +0000 (17:32 -0700)
Introduce a new WARN_ON variant: WARN_ON_SMP(cond).

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/asm-generic/bug.h

index 845cb67ad8ea5d40bcb707462d30879255247b81..8ceab7bcd8b4f229f45536f8208e5394c99e9695 100644 (file)
        __ret;                                          \
 })
 
+#ifdef CONFIG_SMP
+# define WARN_ON_SMP(x)                        WARN_ON(x)
+#else
+# define WARN_ON_SMP(x)                        do { } while (0)
+#endif
+
 #endif