Re: [patch 07/12] alarmtimer: Provide alarmtimer_start()
From: Peter Zijlstra
Date: Tue Apr 07 2026 - 06:04:37 EST
On Tue, Apr 07, 2026 at 10:54:48AM +0200, Thomas Gleixner wrote:
> Alarm timers utilize hrtimers for normal operation and only switch to the
> RTC on suspend. In order to catch already expired timers early and without
> going through a timer interrupt cycle, provide a new start function which
> internally uses hrtimer_start_range_ns_user().
>
> If hrtimer_start_range_ns_user() detects an already expired timer, it does
> not queue it. In that case remove the timer from the alarm base as well.
>
> Return the status queued or not back to the caller to handle the early
> expiry.
>
> Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxx>
Not familiar with this code, but my head hurts from the:
alarm_
alarm_timer_
alarmtimer_
prefixes, what's what?