aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Kconfig.debug
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2010-05-15 16:30:22 -0400
committerFrederic Weisbecker <fweisbec@gmail.com>2010-05-15 19:57:27 -0400
commite16bb1d7fe07609bc8b0e4c043eff2f47ada78d8 (patch)
tree601b142677b67155f23f1413bd651c552ad54fa5 /lib/Kconfig.debug
parent5e85391b3badd3f0e50ebdd0cafe0202a979f73a (diff)
lockup_detector: Update some config
We kept CONFIG_DETECT_SOFTLOCKUP around for compatibility with older configs. But it was enabled by default if CONFIG_DEBUG_KERNEL. So if we want to enable CONFIG_LOCKUP_DETECTOR on configs that had CONFIG_DETECT_SOFTLOCKUP, all we need is to have the same enabling by default if CONFIG_DEBUG_KERNEL. We can then remove CONFIG_DETECT_SOFTLOCKUP directly. So tag CONFIG_LOCKUP_DETECTOR as default y. This is what we want for most serious kernel debugging anyway. And also forbid the lockup detector in S390 as it was for the previous softlockup detector, event though the true reason for that is not outlined. Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Don Zickus <dzickus@redhat.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'lib/Kconfig.debug')
-rw-r--r--lib/Kconfig.debug25
1 files changed, 3 insertions, 22 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 755713a359e2..3a18b0b856ce 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -152,29 +152,10 @@ config DEBUG_SHIRQ
152 Drivers ought to be able to handle interrupts coming in at those 152 Drivers ought to be able to handle interrupts coming in at those
153 points; some don't and need to be caught. 153 points; some don't and need to be caught.
154 154
155config DETECT_SOFTLOCKUP
156 bool
157 depends on DEBUG_KERNEL && !S390
158 default y
159 help
160 Say Y here to enable the kernel to detect "soft lockups",
161 which are bugs that cause the kernel to loop in kernel
162 mode for more than 60 seconds, without giving other tasks a
163 chance to run.
164
165 When a soft-lockup is detected, the kernel will print the
166 current stack trace (which you should report), but the
167 system will stay locked up. This feature has negligible
168 overhead.
169
170 (Note that "hard lockups" are separate type of bugs that
171 can be detected via the NMI-watchdog, on platforms that
172 support it.)
173
174config LOCKUP_DETECTOR 155config LOCKUP_DETECTOR
175 bool "Detect Hard and Soft Lockups" 156 bool "Detect Hard and Soft Lockups"
176 depends on DEBUG_KERNEL 157 depends on DEBUG_KERNEL && !S390
177 default DETECT_SOFTLOCKUP 158 default y
178 help 159 help
179 Say Y here to enable the kernel to act as a watchdog to detect 160 Say Y here to enable the kernel to act as a watchdog to detect
180 hard and soft lockups. 161 hard and soft lockups.
@@ -212,7 +193,7 @@ config BOOTPARAM_SOFTLOCKUP_PANIC
212 193
213config BOOTPARAM_SOFTLOCKUP_PANIC_VALUE 194config BOOTPARAM_SOFTLOCKUP_PANIC_VALUE
214 int 195 int
215 depends on DETECT_SOFTLOCKUP 196 depends on LOCKUP_DETECTOR
216 range 0 1 197 range 0 1
217 default 0 if !BOOTPARAM_SOFTLOCKUP_PANIC 198 default 0 if !BOOTPARAM_SOFTLOCKUP_PANIC
218 default 1 if BOOTPARAM_SOFTLOCKUP_PANIC 199 default 1 if BOOTPARAM_SOFTLOCKUP_PANIC