rcu: Define rcu_all_qs() only in !PREEMPT builds
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 10 Jul 2018 21:00:14 +0000 (14:00 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 30 Aug 2018 23:03:37 +0000 (16:03 -0700)
commit395a2f097ebdddf2bfa286b6119f1b231025c2f1
tree6c4852de5a7125c22cbf0631bf288e64862b52af
parent4d232dfe1df35254298e7986c4de8c9f63f58c79
rcu: Define rcu_all_qs() only in !PREEMPT builds

Now that rcu_all_qs() is used only in !PREEMPT builds, move it to
tree_plugin.h so that it is defined only in those builds.  This in
turn means that rcu_momentary_dyntick_idle() is only used in !PREEMPT
builds, but it is simply marked __maybe_unused in order to keep it
near the rest of the dyntick-idle code.

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