aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/watchdog.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel/watchdog.c b/kernel/watchdog.c
index 4c2e11ce5425..df5494edf694 100644
--- a/kernel/watchdog.c
+++ b/kernel/watchdog.c
@@ -506,7 +506,10 @@ static void watchdog_nmi_disable(unsigned int cpu)
506 /* should be in cleanup, but blocks oprofile */ 506 /* should be in cleanup, but blocks oprofile */
507 perf_event_release_kernel(event); 507 perf_event_release_kernel(event);
508 } 508 }
509 return; 509 if (cpu == 0) {
510 /* watchdog_nmi_enable() expects this to be zero initially. */
511 cpu0_err = 0;
512 }
510} 513}
511#else 514#else
512static int watchdog_nmi_enable(unsigned int cpu) { return 0; } 515static int watchdog_nmi_enable(unsigned int cpu) { return 0; }