rcu: Short-circuit synchronize_sched_expedited() if only one CPU
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 29 Sep 2015 15:15:52 +0000 (08:15 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Fri, 4 Dec 2015 20:26:50 +0000 (12:26 -0800)
commit06f60de19d3141f07d954c9275fe7ccca8e96b42
treed0521b8b3c3d665bdba8d5854d4b598faa4b96db
parent6cf10081220ae21175a867d446b3167bcbcb937b
rcu: Short-circuit synchronize_sched_expedited() if only one CPU

If there is only one CPU, then invoking synchronize_sched_expedited()
is by definition a grace period.  This commit checks for this condition
and does a short-circuit return in that case.

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