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