From: Paul E. McKenney Date: Mon, 18 Nov 2013 03:27:16 +0000 (-0800) Subject: rcu: Optimize rcu_needs_cpu() for RCU_NOCB_CPU_ALL X-Git-Tag: v3.15-rc1~183^2~1^2~1^3~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffa83fb565fbc397cbafb4b71fd1cce276d4c3b6;p=pandora-kernel.git rcu: Optimize rcu_needs_cpu() for RCU_NOCB_CPU_ALL If CONFIG_RCU_NOCB_CPU_ALL=y, then rcu_needs_cpu() will always return false, however, the current version nevertheless checks for RCU callbacks. This commit therefore creates a static inline implementation of rcu_needs_cpu() that unconditionally returns false when CONFIG_RCU_NOCB_CPU_ALL=y. Signed-off-by: Paul E. McKenney Reviewed-by: Josh Triplett --- Reading git-diff-tree failed