Re: [PATCH] clockevents: Prevent timer interrupt starvation

Thomas Gleixner
2026-04-03T14:43:38Z

On Fri, Apr 03 2026 at 14:16, Peter Zijlstra wrote:
>> delta = ktime_to_ns(ktime_sub(expires, ktime_get()));
>> +
>> + /* Don't reprogram when a forced event is pending */
>> + if (dev->next_event_forced && delta <= (int64_t)dev->min_delta_ns)
>> + return 0;
>> +
>> if (delta <= 0)
>> return force ? clockevents_program_min_delta(dev) : -ETIME;
>>
>
> This last hunk seems duplicate of the clockevents_program_min_delta()
> change, that also will bail when next_event_forced is set.

Yeah. I was planning to look into it with brain awake today again.

> Also, I note, thing (except shutdown) will ever clear next_event_forced;
> and I'm thinking that any interrupt or normal reprogram should be doing
> that.

See my reply to Calvin. :)