]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: implement error handling for failure to set up hardware perf events
authorUlrich Obergfell <uobergfe@redhat.com>
Tue, 14 Apr 2015 22:44:10 +0000 (15:44 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 14 Apr 2015 23:48:59 +0000 (16:48 -0700)
commita68a8a4b88fda4b7b0b884e4175adeb3114efcec
tree8e439f7790d9e572a55c2c257fafabbaca865563
parent10ee57d9e01b5896475d0f5d9ba473c0c7b47cf8
watchdog: implement error handling for failure to set up hardware perf events

If watchdog_nmi_enable() fails to set up the hardware perf event of one
CPU, the entire hard lockup detector is deemed unreliable.  Hence, disable
the hard lockup detector and shut down the hardware perf events on all
CPUs.

[dzickus@redhat.com: update comments to explain some code]
Signed-off-by: Ulrich Obergfell <uobergfe@redhat.com>
Signed-off-by: Don Zickus <dzickus@redhat.com>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/watchdog.c