Re: [PATCH] timers: Fix get_next_timer_interrupt() with no timers pending
From: Nicolas Saenz Julienne
Date: Mon Jul 12 2021 - 06:19:16 EST
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@xxxxxxxxxx>
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