Pull watchdog fix from Thomas Gleixner: "Trivial CPU hotplug regression fix for the watchdog code" * 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: watchdog: Fix CPU hotplug regression
Unified · Split
| @@ -368,6 +368,9 @@ static void watchdog_disable(unsigned int cpu) · 367 unmodified lines | |||
| 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 */ |