summaryrefslogtreecommitdiff
path: root/kernel/rcu/tree.c
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2013-11-18 09:08:07 +0400
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2014-02-18 04:03:33 +0400
commitf1f399d1281ea339a08469f7e58193624992f620 (patch)
tree915284120382e3180c3e58ba157cf045998549d0 /kernel/rcu/tree.c
parentffa83fb565fbc397cbafb4b71fd1cce276d4c3b6 (diff)
downloadlinux-f1f399d1281ea339a08469f7e58193624992f620.tar.xz
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>
Diffstat (limited to 'kernel/rcu/tree.c')
0 files changed, 0 insertions, 0 deletions