]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - kernel/watchdog.c
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)
commitbcfba4f4bf3c9c7c72b459d52a9e826dfd72855e
tree8e439f7790d9e572a55c2c257fafabbaca865563
parent83a80a39075a9ded23df1e26a4b617c289077630
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