Lines Matching refs:hrtimer
67 static DEFINE_PER_CPU(struct hrtimer, watchdog_hrtimer);
324 static enum hrtimer_restart watchdog_timer_fn(struct hrtimer *hrtimer) in watchdog_timer_fn() argument
338 hrtimer_forward_now(hrtimer, ns_to_ktime(sample_period)); in watchdog_timer_fn()
442 struct hrtimer *hrtimer = raw_cpu_ptr(&watchdog_hrtimer); in watchdog_enable() local
445 hrtimer_init(hrtimer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in watchdog_enable()
446 hrtimer->function = watchdog_timer_fn; in watchdog_enable()
452 hrtimer_start(hrtimer, ns_to_ktime(sample_period), in watchdog_enable()
462 struct hrtimer *hrtimer = raw_cpu_ptr(&watchdog_hrtimer); in watchdog_disable() local
465 hrtimer_cancel(hrtimer); in watchdog_disable()
664 struct hrtimer *hrtimer = raw_cpu_ptr(&watchdog_hrtimer); in restart_watchdog_hrtimer() local
673 ret = hrtimer_try_to_cancel(hrtimer); in restart_watchdog_hrtimer()
675 hrtimer_start(hrtimer, ns_to_ktime(sample_period), in restart_watchdog_hrtimer()