From: Paul E. McKenney Date: Mon, 18 Nov 2013 05:08:07 +0000 (-0800) Subject: rcu: Optimize RCU_FAST_NO_HZ for RCU_NOCB_CPU_ALL X-Git-Tag: v3.15-rc1~183^2~1^2~1^3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1f399d1281ea339a08469f7e58193624992f620;p=pandora-kernel.git 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 Reviewed-by: Josh Triplett --- Reading git-diff-tree failed