aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Kconfig.debug
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2011-05-24 20:13:32 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-05-25 11:39:53 -0400
commit44ec7abe359204cc9186e32d31ef5b34c8d17274 (patch)
tree0a00cefe04db51828a11d2fe28fc75e763bda5f1 /lib/Kconfig.debug
parentc196e32a111b0ee356d67acceb938ae0b5e63ef0 (diff)
lib: consolidate DEBUG_PER_CPU_MAPS
DEBUG_PER_CPU_MAPS is used in lib/cpumask.c as well as in inlcude/linux/cpumask.h and thus it has outgrown its use within x86 and powerpc alone. Any arch with SMP support may want to get some more debugging, so make this option generic. Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> Cc: <linux-arch@vger.kernel.org> Cc: Ingo Molnar <mingo@elte.hu> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: "H. Peter Anvin" <hpa@zytor.com> Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/Kconfig.debug')
-rw-r--r--lib/Kconfig.debug11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 0efcdca9751a..09596e01468e 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -983,6 +983,17 @@ config DEBUG_FORCE_WEAK_PER_CPU
983 To ensure that generic code follows the above rules, this 983 To ensure that generic code follows the above rules, this
984 option forces all percpu variables to be defined as weak. 984 option forces all percpu variables to be defined as weak.
985 985
986config DEBUG_PER_CPU_MAPS
987 bool "Debug access to per_cpu maps"
988 depends on DEBUG_KERNEL
989 depends on SMP
990 help
991 Say Y to verify that the per_cpu map being accessed has
992 been set up. This adds a fair amount of code to kernel memory
993 and decreases performance.
994
995 Say N if unsure.
996
986config LKDTM 997config LKDTM
987 tristate "Linux Kernel Dump Test Tool Module" 998 tristate "Linux Kernel Dump Test Tool Module"
988 depends on DEBUG_FS 999 depends on DEBUG_FS