rcu: Optimize rcu_is_nocb_cpu() for RCU_NOCB_CPU_ALL
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 18 Nov 2013 02:25:48 +0000 (18:25 -0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 17 Feb 2014 23:32:48 +0000 (15:32 -0800)
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 <paulmck@linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
include/linux/rcupdate.h
kernel/rcu/tree_plugin.h

Simple merge
Simple merge