aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/watchdog.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/watchdog.c')
-rw-r--r--kernel/watchdog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/watchdog.c b/kernel/watchdog.c
index 7f9e7b9306fe..f41334ef0971 100644
--- a/kernel/watchdog.c
+++ b/kernel/watchdog.c
@@ -490,10 +490,10 @@ static void watchdog_enable(unsigned int cpu)
490 * Start the timer first to prevent the NMI watchdog triggering 490 * Start the timer first to prevent the NMI watchdog triggering
491 * before the timer has a chance to fire. 491 * before the timer has a chance to fire.
492 */ 492 */
493 hrtimer_init(hrtimer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); 493 hrtimer_init(hrtimer, CLOCK_MONOTONIC, HRTIMER_MODE_REL_HARD);
494 hrtimer->function = watchdog_timer_fn; 494 hrtimer->function = watchdog_timer_fn;
495 hrtimer_start(hrtimer, ns_to_ktime(sample_period), 495 hrtimer_start(hrtimer, ns_to_ktime(sample_period),
496 HRTIMER_MODE_REL_PINNED); 496 HRTIMER_MODE_REL_PINNED_HARD);
497 497
498 /* Initialize timestamp */ 498 /* Initialize timestamp */
499 __touch_watchdog(); 499 __touch_watchdog();