aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2010-05-15 17:15:20 -0400
committerFrederic Weisbecker <fweisbec@gmail.com>2010-05-15 19:57:42 -0400
commit23637d477c1f53acbb176a02c241d60a25888fae (patch)
tree6d2e9e4a9f6fa2428e0ace29cf764212b823598a /lib
parentc01d4323309a90a298fd81cf3a059ee1b12be2e9 (diff)
lockup_detector: Introduce CONFIG_HARDLOCKUP_DETECTOR
This new config is deemed to simplify even more the lockup detector dependencies and can make it easier to bring a smooth sorting between archs that support the new generic lockup detector and those that still have their own, especially for those that are in the middle of this migration. Instead of checking whether we have CONFIG_LOCKUP_DETECTOR + CONFIG_PERF_EVENTS_NMI each time an arch wants to know if it needs to build its own lockup detector, take a shortcut with this new config. It is enabled only if the hardlockup detection part of the whole lockup detector is on. Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Don Zickus <dzickus@redhat.com> Cc: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Kconfig.debug3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 3a18b0b856ce..e65e47d5c5e6 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -174,6 +174,9 @@ config LOCKUP_DETECTOR
174 generate interrupts and kick the watchdog task every 10-12 seconds. 174 generate interrupts and kick the watchdog task every 10-12 seconds.
175 An NMI is generated every 60 seconds or so to check for hardlockups. 175 An NMI is generated every 60 seconds or so to check for hardlockups.
176 176
177config HARDLOCKUP_DETECTOR
178 def_bool LOCKUP_DETECTOR && PERF_EVENTS && HAVE_PERF_EVENTS_NMI
179
177config BOOTPARAM_SOFTLOCKUP_PANIC 180config BOOTPARAM_SOFTLOCKUP_PANIC
178 bool "Panic (Reboot) On Soft Lockups" 181 bool "Panic (Reboot) On Soft Lockups"
179 depends on LOCKUP_DETECTOR 182 depends on LOCKUP_DETECTOR