rcu: Simplify and inline cpu_needs_another_gp()
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 12 Apr 2018 23:29:13 +0000 (16:29 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 15 May 2018 17:30:59 +0000 (10:30 -0700)
commitc1935209df8c903fc3a33143223338826fa54bd1
treed60d6f9ac8350e6e3e5866ca7951387a5d4d4d48
parent384f77f4cb765707216ea43f9122580d8a07be7d
rcu: Simplify and inline cpu_needs_another_gp()

Now that RCU no longer relies on failsafe checks, cpu_needs_another_gp()
can be greatly simplified.  This simplification eliminates the last
call to rcu_future_needs_gp() and to rcu_segcblist_future_gp_needed(),
both of which which can then be eliminated.  And then, because
cpu_needs_another_gp() is called only from __rcu_pending(), it can be
inlined and eliminated.

This commit carries out the simplification, inlining, and elimination
called out above.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Tested-by: Nicholas Piggin <npiggin@gmail.com>
kernel/rcu/rcu_segcblist.c
kernel/rcu/rcu_segcblist.h
kernel/rcu/tree.c