nohz: Fix another inconsistency between CONFIG_NO_HZ=n and nohz=off
[firefly-linux-kernel-4.4.55.git] / kernel / rcutree.c
index b61d20c5ee7b3e90aa385f2ce40a31ec2ab132eb..35380019f0fc101df423dab03d3b418ec2291eac 100644 (file)
@@ -1451,9 +1451,9 @@ static int rcu_gp_init(struct rcu_state *rsp)
                                            rnp->grphi, rnp->qsmask);
                raw_spin_unlock_irq(&rnp->lock);
 #ifdef CONFIG_PROVE_RCU_DELAY
-               if ((prandom_u32() % (rcu_num_nodes * 8)) == 0 &&
+               if ((prandom_u32() % (rcu_num_nodes + 1)) == 0 &&
                    system_state == SYSTEM_RUNNING)
-                       schedule_timeout_uninterruptible(2);
+                       udelay(200);
 #endif /* #ifdef CONFIG_PROVE_RCU_DELAY */
                cond_resched();
        }