]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sparc: Implement watchdog_nmi_enable and watchdog_nmi_disable
authorBabu Moger <babu.moger@oracle.com>
Thu, 13 Oct 2016 17:36:48 +0000 (10:36 -0700)
committerAllen Pais <allen.pais@oracle.com>
Sun, 22 Jan 2017 15:36:57 +0000 (21:06 +0530)
commitc37016d26d5013bbb55d630b5489a6312b90e09d
tree24196081d133da2eab58680940e27322c570b61d
parent7d50bc81b5a5171d85fa3125f0198b59b1c3a869
sparc: Implement watchdog_nmi_enable and watchdog_nmi_disable

Implement functions watchdog_nmi_enable and watchdog_nmi_disable
to enable/disable nmi watchdogs. 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

Orabug: 24796651

Signed-off-by: Babu Moger <babu.moger@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
(cherry picked from commit 43e96774e0a338e883e9ced9e717424df126b153)
Signed-off-by: Allen Pais <allen.pais@oracle.com>
arch/sparc/kernel/nmi.c