Messages in this thread | | | Date | Mon, 1 Jul 2013 22:55:56 +0200 | From | Frederic Weisbecker <> | Subject | Re: [PATCH RFC nohz_full v2 6/7] nohz_full: Add full-system-idle state machine |
| |
On Mon, Jul 01, 2013 at 11:10:40AM -0700, Paul E. McKenney wrote: > On Mon, Jul 01, 2013 at 06:35:31PM +0200, Frederic Weisbecker wrote: > > What makes sure that we are not reading a stale value of rdtp->dynticks_idle > > in the following scenario: > > > > CPU 0 CPU 1 > > > > //CPU 1 idle > > //rdtp(1)->dynticks_idle == 0 > > > > sysidle_check_cpu(CPU 1) { > > rdtp(1)->dynticks_idle == 0 > > } > > cmpxchg(full_sysidle_state, > > ...RCU_SYSIDLE_SHORT) > > rcu_irq_exit() { > > rcu_irq_enter(), right? >
Woops, I meant rcu_idle_exit(). But yeah rcu_irq_enter() as well.
Thanks.
| |