]> Git Repo - linux.git/commit
sparc: implement watchdog_nmi_enable and watchdog_nmi_disable
authorBabu Moger <[email protected]>
Wed, 14 Dec 2016 23:06:28 +0000 (15:06 -0800)
committerLinus Torvalds <[email protected]>
Thu, 15 Dec 2016 00:04:08 +0000 (16:04 -0800)
commit7a5c8b57cec93196b3e84e3cad2ff81ae0faed78
treef743be5a29c68acb0cdb0e87c7ad2709600484c6
parent73ce0511c43686095efd2f65ef564aab952e07bc
sparc: implement watchdog_nmi_enable and watchdog_nmi_disable

Implement functions watchdog_nmi_enable and watchdog_nmi_disable to
enable/disable nmi watchdog.  Sparc uses arch specific nmi watchdog
handler.  Currently, we do not have a way to enable/disable nmi watchdog
dynamically.  With these patches we can enable or disable arch specific
nmi watchdogs using proc or sysctl interface.

Example commands.
To enable: echo 1 >  /proc/sys/kernel/nmi_watchdog
To disable: echo 0 >  /proc/sys/kernel/nmi_watchdog

It can also achieved using the sysctl parameter kernel.nmi_watchdog

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Babu Moger <[email protected]>
Acked-by: Don Zickus <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Kosina <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Yaowei Bai <[email protected]>
Cc: Aaron Tomlin <[email protected]>
Cc: Ulrich Obergfell <[email protected]>
Cc: Tejun Heo <[email protected]>
Cc: Hidehiro Kawai <[email protected]>
Cc: Josh Hunt <[email protected]>
Cc: "David S. Miller" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
arch/sparc/kernel/nmi.c
This page took 0.052092 seconds and 4 git commands to generate.