kernel/watchdog.c: add sysctl knob hardlockup_panic
authorDon Zickus <[email protected]>
Fri, 6 Nov 2015 02:44:44 +0000 (18:44 -0800)
committerLinus Torvalds <[email protected]>
Fri, 6 Nov 2015 03:34:48 +0000 (19:34 -0800)
commitac1f591249d95372f3a5ab3828d4af5dfbf5efd3
tree39dfce1a0fc12de79689cd97e2876ddf777c8cab
parent55537871ef666b4153fd1ef8782e4a13fee142cc
kernel/watchdog.c: add sysctl knob hardlockup_panic

The only way to enable a hardlockup to panic the machine is to set
'nmi_watchdog=panic' on the kernel command line.

This makes it awkward for end users and folks who want to run automate
tests (like myself).

Mimic the softlockup_panic knob and create a /proc/sys/kernel/hardlockup_panic
knob.

Signed-off-by: Don Zickus <[email protected]>
Cc: Ulrich Obergfell <[email protected]>
Acked-by: Jiri Kosina <[email protected]>
Reviewed-by: Aaron Tomlin <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Documentation/lockup-watchdogs.txt
include/linux/sched.h
kernel/sysctl.c
kernel/watchdog.c