aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorDon Zickus <dzickus@redhat.com>2011-03-22 19:34:16 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-03-22 20:44:12 -0400
commitfef2c9bc1b54c0261324a96e948c0b849796e896 (patch)
treea4dd2733621d9fe1f8ec65d9ef30867ed09b640f /Documentation
parentb1b5f65e53af770ede22c113e249de2f6fa53706 (diff)
kernel/watchdog.c: allow hardlockup to panic by default
When a cpu is considered stuck, instead of limping along and just printing a warning, it is sometimes preferred to just panic, let kdump capture the vmcore and reboot. This gets the machine back into a stable state quickly while saving the info that got it into a stuck state to begin with. Add a Kconfig option to allow users to set the hardlockup to panic by default. Also add in a 'nmi_watchdog=nopanic' to override this. [akpm@linux-foundation.org: fix strncmp length] Signed-off-by: Don Zickus <dzickus@redhat.com> Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Reviewed-by: WANG Cong <xiyou.wangcong@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/kernel-parameters.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt
index a3b688287a8d..e9261e938f6a 100644
--- a/Documentation/kernel-parameters.txt
+++ b/Documentation/kernel-parameters.txt
@@ -1597,11 +1597,12 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
1597 Format: [state][,regs][,debounce][,die] 1597 Format: [state][,regs][,debounce][,die]
1598 1598
1599 nmi_watchdog= [KNL,BUGS=X86] Debugging features for SMP kernels 1599 nmi_watchdog= [KNL,BUGS=X86] Debugging features for SMP kernels
1600 Format: [panic,][num] 1600 Format: [panic,][nopanic,][num]
1601 Valid num: 0 1601 Valid num: 0
1602 0 - turn nmi_watchdog off 1602 0 - turn nmi_watchdog off
1603 When panic is specified, panic when an NMI watchdog 1603 When panic is specified, panic when an NMI watchdog
1604 timeout occurs. 1604 timeout occurs (or 'nopanic' to override the opposite
1605 default).
1605 This is useful when you use a panic=... timeout and 1606 This is useful when you use a panic=... timeout and
1606 need the box quickly up again. 1607 need the box quickly up again.
1607 1608