Re: [PATCH] timer: Prevent base->clk from moving backward

2020-07-09 Thread Anna-Maria Behnsen
Hi, On Fri, 3 Jul 2020, Frederic Weisbecker wrote: > When a timer is enqueued with a negative delta (ie: expiry is below > base->clk), it gets added to the wheel as expiring now (base->clk). > > Yet the value that gets stored in base->next_expiry, while calling > trigger_dyntick_cpu(), is the in

[PATCH] timer: Prevent base->clk from moving backward

2020-07-02 Thread Frederic Weisbecker
When a timer is enqueued with a negative delta (ie: expiry is below base->clk), it gets added to the wheel as expiring now (base->clk). Yet the value that gets stored in base->next_expiry, while calling trigger_dyntick_cpu(), is the initial timer->expires value. The resulting state becomes: