aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/watchdog.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/watchdog.c')
-rw-r--r--kernel/watchdog.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/watchdog.c b/kernel/watchdog.c
index dd4b80a9f1a9..c8c21be11ab4 100644
--- a/kernel/watchdog.c
+++ b/kernel/watchdog.c
@@ -368,6 +368,9 @@ static void watchdog_disable(unsigned int cpu)
368{ 368{
369 struct hrtimer *hrtimer = &__raw_get_cpu_var(watchdog_hrtimer); 369 struct hrtimer *hrtimer = &__raw_get_cpu_var(watchdog_hrtimer);
370 370
371 if (!watchdog_enabled)
372 return;
373
371 watchdog_set_prio(SCHED_NORMAL, 0); 374 watchdog_set_prio(SCHED_NORMAL, 0);
372 hrtimer_cancel(hrtimer); 375 hrtimer_cancel(hrtimer);
373 /* disable the perf event */ 376 /* disable the perf event */