Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ce6cf9a1 authored by Frederic Weisbecker's avatar Frederic Weisbecker Committed by Ingo Molnar
Browse files

nohz: Add hrtimer sanity check

parent b23afd38
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -771,8 +771,13 @@ static ktime_t tick_nohz_stop_sched_tick(struct tick_sched *ts,
	tick = expires;

	/* Skip reprogram of event if its not changed */
	if (ts->tick_stopped && (expires == dev->next_event))
	if (ts->tick_stopped) {
		if (hrtimer_active(&ts->sched_timer))
			WARN_ON_ONCE(hrtimer_get_expires(&ts->sched_timer) < dev->next_event);

		if (expires == dev->next_event)
			goto out;
	}

	/*
	 * nohz_stop_sched_tick can be called several times before