Re: [patch V2 04/11] posix-timers: Handle the timer_[re]arm() return value
From: Frederic Weisbecker
Date: Thu Apr 09 2026 - 12:07:35 EST
Le Wed, Apr 08, 2026 at 01:54:01PM +0200, Thomas Gleixner a écrit :
> The [re]arm callbacks will return true when the timer was queued and false
> if it was already expired at enqueue time.
>
> In both cases the call sites can trivially queue the signal right there,
> when the timer was already expired. That avoids a full round trip through
> the hrtimer interrupt.
>
> Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxx>
> Acked-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>
> Cc: Anna-Maria Behnsen <anna-maria@xxxxxxxxxxxxx>
> Cc: Frederic Weisbecker <frederic@xxxxxxxxxx>
Reviewed-by: Frederic Weisbecker <frederic@xxxxxxxxxx>
--
Frederic Weisbecker
SUSE Labs