rcu: Prohibit grace periods during early boot
authorPaul E. McKenney <paul.mckenney@linaro.org>
Mon, 8 Aug 2011 03:26:31 +0000 (20:26 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 29 Sep 2011 04:38:40 +0000 (21:38 -0700)
commit037067a1b6f9a70f862f3ed9d59fe28b7cd55ac4
tree0f54deff3994de1bdb54707b7943307244ed692f
parent82e78d80fc392ac7e98326bc8beeb8a679913ffd
rcu: Prohibit grace periods during early boot

Greater use of RCU during early boot (before the scheduler is operating)
is causing RCU to attempt to start grace periods during that time, which
in turn is resulting in both RCU and the callback functions attempting
to use the scheduler before it is ready.

This commit prevents these problems by prohibiting RCU grace periods
until after the scheduler has spawned the first non-idle task.

Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcutree.c