Re: [PATCH] timers: Fix get_next_timer_interrupt() with no timers pending

Nicolas Saenz Julienne
2021-07-12T10:19:16Z

On Sat, 2021-07-10 at 02:52 +0200, Frederic Weisbecker wrote:
> Very good catch.
>
> And the fix looks good:
>
> Acked-by: Frederic Weisbecker <frederic@kernel.org>

Thanks!

>
> I guess later we can turn this .timers_pending into
> .timers_count and that would spare us the costly call to
> __next_timer_interrupt() up to the last level after the last
> timer is dequeued.

Sound like something manageable. I'll probably have a go at it in the future.

--
Nicolás Sáenz