Re: [PATCH v3 4/5] tick/nohz: Reset got_idle_tick when entering dynticks idle

From: Frederic Weisbecker

Date: Mon Nov 16 2026 - 10:26:35 EST


Le Thu, Nov 12, 2026 at 05:38:12PM +0100, Marco Crivellari a écrit :
> A tick firing after the last tick_nohz_idle_got_tick() and before
> tick_nohz_idle_exit() leaves got_idle_tick set, and the next
> cpuidle_idle_call() then assumes that a later dynticks idle period was
> ended by the tick. Now that the CPU leaves dynticks idle before polling,
> this can also happen within a single idle trip when it switches between
> cpuidle and polling, e.g. when it polls because the tick broadcast has
> expired.
>
> Reset got_idle_tick when entering dynticks idle, so that it only reports
> the ticks of the current period.
>
> Suggested-by: Frederic Weisbecker <frederic@xxxxxxxxxx>
> Signed-off-by: Marco Crivellari <marco.crivellari@xxxxxxxx>

Reviewed-by: Frederic Weisbecker <frederic@xxxxxxxxxx>

--
Frederic Weisbecker
SUSE Labs