Re: [PATCH RFC tip/core/rcu 4/4] rcu: Ensure that RCU_FAST_NO_HZ timers expire on correct CPU

Peter Zijlstra
2012-04-26T13:05:23Z

On Mon, 2012-04-23 at 09:16 -0700, Paul E. McKenney wrote:
> - mod_timer(&per_cpu(rcu_idle_gp_timer, cpu),
> - per_cpu(rcu_idle_gp_timer_expires, cpu));
> + tp = &per_cpu(rcu_idle_gp_timer, cpu);
> + tp->expires = per_cpu(rcu_idle_gp_timer_expires, cpu);
> + add_timer_on(tp, cpu);

The simpler change looks to use mod_timer_pinned()