Re: [PATCH 1/2] timers: Initialize base::next_expiry_recalc during prepare cpu

From: Frederic Weisbecker
Date: Tue Apr 05 2022 - 22:47:57 EST


On Tue, Apr 05, 2022 at 09:17:31PM +0200, Anna-Maria Behnsen wrote:
> When base::next_expiry_recalc is not initialized to false during cpu
> bringup in HOTPLUG_CPU and is accidently true and no timer is queued in the
> meantime, the loop through the wheel to find __next_timer_interrupt() might
> be done for nothing.
>
> Therefore initialize base::next_expiry_recalc to false in
> timers_prepare_cpu().
>
> Signed-off-by: Anna-Maria Behnsen <anna-maria@xxxxxxxxxxxxx>

Reviewed-by: Frederic Weisbecker <frederic@xxxxxxxxxx>