]> 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)
commit078566f098677fbc149c11c956b89cfb7fe80cf5
tree8e439f7790d9e572a55c2c257fafabbaca865563
parent543db96caf8d77afb61fff48bebd21c78957a74f
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