提交 ce6cf9a1 编写于 作者: F Frederic Weisbecker 提交者: Ingo Molnar

nohz: Add hrtimer sanity check

Signed-off-by: NFrederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: NIngo Molnar <mingo@kernel.org>
上级 b23afd38
......@@ -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))
goto out;
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册