summaryrefslogtreecommitdiffstats
path: root/include/asm-generic
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2006-06-27 11:54:50 +0200
committerLinus Torvalds <torvalds@g5.osdl.org>2006-06-28 02:32:46 +0200
commit8eb94f80dd2da5977c35cd094f0802c1501a12cd (patch)
treeff2ff8f89fb04359aaf3dbe6ea3ca60cec4879f0 /include/asm-generic
parent[PATCH] pi-futex: introduce debug_check_no_locks_freed() (diff)
downloadlinux-8eb94f80dd2da5977c35cd094f0802c1501a12cd.tar.xz
linux-8eb94f80dd2da5977c35cd094f0802c1501a12cd.zip
[PATCH] pi-futex: introduce WARN_ON_SMP
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>
Diffstat (limited to 'include/asm-generic')
-rw-r--r--include/asm-generic/bug.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/asm-generic/bug.h b/include/asm-generic/bug.h
index 845cb67ad8ea..8ceab7bcd8b4 100644
--- a/include/asm-generic/bug.h
+++ b/include/asm-generic/bug.h
@@ -51,4 +51,10 @@
__ret; \
})
+#ifdef CONFIG_SMP
+# define WARN_ON_SMP(x) WARN_ON(x)
+#else
+# define WARN_ON_SMP(x) do { } while (0)
+#endif
+
#endif