aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rcutree.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/rcutree.c')
-rw-r--r--kernel/rcutree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/rcutree.c b/kernel/rcutree.c
index 195b3a3313e3..99c6038ad04d 100644
--- a/kernel/rcutree.c
+++ b/kernel/rcutree.c
@@ -324,8 +324,8 @@ void rcu_enter_nohz(void)
324 smp_mb(); /* CPUs seeing ++ must see prior RCU read-side crit sects */ 324 smp_mb(); /* CPUs seeing ++ must see prior RCU read-side crit sects */
325 local_irq_save(flags); 325 local_irq_save(flags);
326 rdtp = &__get_cpu_var(rcu_dynticks); 326 rdtp = &__get_cpu_var(rcu_dynticks);
327 rdtp->dynticks++; 327 if (--rdtp->dynticks_nesting == 0)
328 rdtp->dynticks_nesting--; 328 rdtp->dynticks++;
329 WARN_ON_ONCE(rdtp->dynticks & 0x1); 329 WARN_ON_ONCE(rdtp->dynticks & 0x1);
330 local_irq_restore(flags); 330 local_irq_restore(flags);
331} 331}