rcu: Optimize RCU_FAST_NO_HZ for RCU_NOCB_CPU_ALL
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 18 Nov 2013 05:08:07 +0000 (21:08 -0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 18 Feb 2014 00:03:33 +0000 (16:03 -0800)
commitf1f399d1281ea339a08469f7e58193624992f620
tree915284120382e3180c3e58ba157cf045998549d0
parentffa83fb565fbc397cbafb4b71fd1cce276d4c3b6
rcu: Optimize RCU_FAST_NO_HZ for RCU_NOCB_CPU_ALL

If CONFIG_RCU_NOCB_CPU_ALL=y, then no CPU will ever have RCU callbacks
because these callbacks will instead be handled by the rcuo kthreads.
However, the current version of RCU_FAST_NO_HZ nevertheless checks for RCU
callbacks.  This commit therefore creates static inline implementations
of rcu_prepare_for_idle() and rcu_cleanup_after_idle() that are no-ops
when CONFIG_RCU_NOCB_CPU_ALL=y.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
kernel/rcu/tree_plugin.h