watchdog: Disable watchdog when thresh is zero
authorMandeep Singh Baines <msb@chromium.org>
Mon, 23 May 2011 05:10:22 +0000 (22:10 -0700)
committerIngo Molnar <mingo@elte.hu>
Mon, 23 May 2011 09:58:59 +0000 (11:58 +0200)
commit586692a5a5fc5740c8a46abc0f2365495c2d7c5f
treebc08228e67a968d83691c9efc5ea1feda9e6f98b
parente04ab2bc41b35c0cb6cdb07c8443f91aa738cf78
watchdog: Disable watchdog when thresh is zero

This restores the previous behavior of softlock_thresh.

Currently, setting watchdog_thresh to zero causes the watchdog
kthreads to consume a lot of CPU.

In addition, the logic of proc_dowatchdog_thresh and
proc_dowatchdog_enabled has been factored into proc_dowatchdog.

Signed-off-by: Mandeep Singh Baines <msb@chromium.org>
Cc: Marcin Slusarz <marcin.slusarz@gmail.com>
Cc: Don Zickus <dzickus@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Link: http://lkml.kernel.org/r/1306127423-3347-3-git-send-email-msb@chromium.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>
LKML-Reference: <20110517071018.GE22305@elte.hu>
include/linux/nmi.h
include/linux/sched.h
kernel/sysctl.c
kernel/watchdog.c