diff options
Diffstat (limited to 'kernel')
-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; } |