Re: [PATCH] hrtimers: calculate expires_next after all timers are executed

2014-03-19 Thread Thomas Gleixner
On Mon, 17 Mar 2014, Stanislav Fomichev wrote: > I think I'm hitting particularly subtle issue with NOHZ_IDLE kernel. > > The sequence is as follows: > - CPU enters idle, we disable tick > - hrtimer interrupt fires (for hrtimer_wakeup) > - for clock base #1 (REALTIME) we wake up SCHED_RT thread a

[PATCH] hrtimers: calculate expires_next after all timers are executed

2014-03-17 Thread Stanislav Fomichev
I think I'm hitting particularly subtle issue with NOHZ_IDLE kernel. The sequence is as follows: - CPU enters idle, we disable tick - hrtimer interrupt fires (for hrtimer_wakeup) - for clock base #1 (REALTIME) we wake up SCHED_RT thread and start RT period timer (from start_rt_bandwidth) for clo