Skip to content

Commit cfd1f03

Browse files
committed
Merge branch 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
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
2 parents 27d7c2a + 8d45169 commit cfd1f03

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

kernel/watchdog.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,9 @@ static void watchdog_disable(unsigned int cpu)
368368
{
369369
struct hrtimer *hrtimer = &__raw_get_cpu_var(watchdog_hrtimer);
370370

371+
if (!watchdog_enabled)
372+
return;
373+
371374
watchdog_set_prio(SCHED_NORMAL, 0);
372375
hrtimer_cancel(hrtimer);
373376
/* disable the perf event */

0 commit comments

Comments
 (0)