Re: [PATCH RFC nohz_full v2 6/7] nohz_full: Add full-system-idlestate machine

From: Frederic Weisbecker
Date: Mon Jul 01 2013 - 16:56:09 EST


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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/