srcu: Allow early boot use of synchronize_srcu()
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Fri, 10 Feb 2017 22:50:46 +0000 (14:50 -0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 18 Apr 2017 18:38:18 +0000 (11:38 -0700)
commitb5eaeaa509d30812049f9e1c05446d564e91616b
treeb12c83bf2e5ee0e2b4b792d6fb04411c2887cc10
parent900b1028ec388e50c98200641ae4274794c807cf
srcu: Allow early boot use of synchronize_srcu()

This commit checks for pre-scheduler state, and if that early in the
boot process, synchronize_srcu() and friends are no-ops.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcu/srcu.c