]> git.baikalelectronics.ru Git - kernel.git/commit
kernel/watchdog.c: disable nmi perf event in the error path of enabling watchdog
authorHillf Danton <dhillf@gmail.com>
Wed, 27 Apr 2011 22:26:55 +0000 (15:26 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 28 Apr 2011 18:28:21 +0000 (11:28 -0700)
commit207c3708eecbba21b7250c58e0732a09ac0066a8
tree2ef8c9431f15cae6f243482cbe1cf9f11ae60082
parenta62ab3c733bb992b10635a25c1df39c008c02c9e
kernel/watchdog.c: disable nmi perf event in the error path of enabling watchdog

In corner cases where softlockup watchdog is not setup successfully, the
relevant nmi perf event for hardlockup watchdog could be disabled, then
the status of the underlying hardware remains unchanged.

Also, if the kthread doesn't start then the hrtimer won't run and the
hardlockup detector will falsely fire.

Signed-off-by: Hillf Danton <dhillf@gmail.com>
Signed-off-by: Don Zickus <dzickus@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/watchdog.c