diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-10-13 10:10:06 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-10-13 10:10:06 -0400 |
commit | 13ead805c5a14b0e7ecd34f61404a5bfba655895 (patch) | |
tree | 0ce86d4d10ab0398c31e5b630060309d362144d6 | |
parent | ebf546cc5391b9a8a17c1196b05b4357ef0138a2 (diff) | |
parent | df577149594cefacd62740e86de080c6336d699e (diff) |
Merge branch 'perf-watchdog-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull watchdog fixes from Ingo Molnar:
"Two small watchdog subsystem fixes"
* 'perf-watchdog-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
watchdog: Fix print-once on enable
watchdog: Remove unnecessary header files
-rw-r--r-- | kernel/watchdog.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/kernel/watchdog.c b/kernel/watchdog.c index 7b223b212683..ff7fd80bef99 100644 --- a/kernel/watchdog.c +++ b/kernel/watchdog.c | |||
@@ -15,11 +15,6 @@ | |||
15 | #include <linux/cpu.h> | 15 | #include <linux/cpu.h> |
16 | #include <linux/nmi.h> | 16 | #include <linux/nmi.h> |
17 | #include <linux/init.h> | 17 | #include <linux/init.h> |
18 | #include <linux/delay.h> | ||
19 | #include <linux/freezer.h> | ||
20 | #include <linux/kthread.h> | ||
21 | #include <linux/lockdep.h> | ||
22 | #include <linux/notifier.h> | ||
23 | #include <linux/module.h> | 18 | #include <linux/module.h> |
24 | #include <linux/sysctl.h> | 19 | #include <linux/sysctl.h> |
25 | #include <linux/smpboot.h> | 20 | #include <linux/smpboot.h> |
@@ -530,7 +525,10 @@ static void watchdog_nmi_disable(unsigned int cpu) | |||
530 | /* should be in cleanup, but blocks oprofile */ | 525 | /* should be in cleanup, but blocks oprofile */ |
531 | perf_event_release_kernel(event); | 526 | perf_event_release_kernel(event); |
532 | } | 527 | } |
533 | return; | 528 | if (cpu == 0) { |
529 | /* watchdog_nmi_enable() expects this to be zero initially. */ | ||
530 | cpu0_err = 0; | ||
531 | } | ||
534 | } | 532 | } |
535 | #else | 533 | #else |
536 | static int watchdog_nmi_enable(unsigned int cpu) { return 0; } | 534 | static int watchdog_nmi_enable(unsigned int cpu) { return 0; } |