aboutsummaryrefslogtreecommitdiffstats
path: root/arch/openrisc
diff options
context:
space:
mode:
authorDave Hansen <dave@linux.vnet.ibm.com>2013-07-01 16:04:42 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-07-04 14:25:39 -0400
commitd1a1dc0be866219f7a613c6368c6a036b8eefe03 (patch)
tree3e82bc03670f24e26cb340278e6bc2abd8f7f54b /arch/openrisc
parent8bb495e3f02401ee6f76d1b1d77f3ac9f079e376 (diff)
consolidate per-arch stack overflow debugging options
Original posting: http://lkml.kernel.org/r/20121214184202.F54094D9@kernel.stglabs.ibm.com Several architectures have similar stack debugging config options. They all pretty much do the same thing, some with slightly differing help text. This patch changes the architectures to instead enable a Kconfig boolean, and then use that boolean in the generic Kconfig.debug to present the actual menu option. This removes a bunch of duplication and adds consistency across arches. Signed-off-by: Dave Hansen <dave@linux.vnet.ibm.com> Reviewed-by: H. Peter Anvin <hpa@zytor.com> Reviewed-by: James Hogan <james.hogan@imgtec.com> Acked-by: Chris Metcalf <cmetcalf@tilera.com> [for tile] Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/openrisc')
-rw-r--r--arch/openrisc/Kconfig11
1 files changed, 1 insertions, 10 deletions
diff --git a/arch/openrisc/Kconfig b/arch/openrisc/Kconfig
index 1072bfd18c50..99dbab1c59ac 100644
--- a/arch/openrisc/Kconfig
+++ b/arch/openrisc/Kconfig
@@ -22,6 +22,7 @@ config OPENRISC
22 select GENERIC_STRNCPY_FROM_USER 22 select GENERIC_STRNCPY_FROM_USER
23 select GENERIC_STRNLEN_USER 23 select GENERIC_STRNLEN_USER
24 select MODULES_USE_ELF_RELA 24 select MODULES_USE_ELF_RELA
25 select HAVE_DEBUG_STACKOVERFLOW
25 26
26config MMU 27config MMU
27 def_bool y 28 def_bool y
@@ -128,16 +129,6 @@ config CMDLINE
128 129
129menu "Debugging options" 130menu "Debugging options"
130 131
131config DEBUG_STACKOVERFLOW
132 bool "Check for kernel stack overflow"
133 default y
134 help
135 Make extra checks for space available on stack in some
136 critical functions. This will cause kernel to run a bit slower,
137 but will catch most of kernel stack overruns and exit gracefully.
138
139 Say Y if you are unsure.
140
141config JUMP_UPON_UNHANDLED_EXCEPTION 132config JUMP_UPON_UNHANDLED_EXCEPTION
142 bool "Try to die gracefully" 133 bool "Try to die gracefully"
143 default y 134 default y