rcu: fix build bug in RCU_FAST_NO_HZ builds
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
This commit is contained in:
parent
77e38ed347
commit
d822ed1094
|
@ -1063,8 +1063,8 @@ int rcu_needs_cpu(int cpu)
|
||||||
for_each_online_cpu(thatcpu) {
|
for_each_online_cpu(thatcpu) {
|
||||||
if (thatcpu == cpu)
|
if (thatcpu == cpu)
|
||||||
continue;
|
continue;
|
||||||
snap = per_cpu(rcu_dynticks, thatcpu)->dynticks;
|
snap = per_cpu(rcu_dynticks, thatcpu).dynticks;
|
||||||
snap_nmi = per_cpu(rcu_dynticks, thatcpu)->dynticks_nmi;
|
snap_nmi = per_cpu(rcu_dynticks, thatcpu).dynticks_nmi;
|
||||||
smp_mb(); /* Order sampling of snap with end of grace period. */
|
smp_mb(); /* Order sampling of snap with end of grace period. */
|
||||||
if (((snap & 0x1) != 0) || ((snap_nmi & 0x1) != 0)) {
|
if (((snap & 0x1) != 0) || ((snap_nmi & 0x1) != 0)) {
|
||||||
per_cpu(rcu_dyntick_drain, cpu) = 0;
|
per_cpu(rcu_dyntick_drain, cpu) = 0;
|
||||||
|
|
Loading…
Reference in New Issue