rcu: Make RCU able to tolerate undefined CONFIG_RCU_FANOUT_LEAF
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 21 Apr 2015 16:12:13 +0000 (09:12 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 27 May 2015 19:59:05 +0000 (12:59 -0700)
commit47d631af58bb9b2f2dd3d0da8c98a79a5e75c738
tree7472330c70684ac02140d2f3796b042b53a4f6dd
parent05c5df31afd1092ca6322094d22aff6351fa67fe
rcu: Make RCU able to tolerate undefined CONFIG_RCU_FANOUT_LEAF

This commit introduces an RCU_FANOUT_LEAF C-preprocessor macro so
that RCU will build even when CONFIG_RCU_FANOUT_LEAF is undefined.
The RCU_FANOUT_LEAF macro is set to the value of CONFIG_RCU_FANOUT_LEAF
when defined, otherwise it is set to 32 for 32-bit systems and 64 for
64-bit systems.  This commit then makes CONFIG_RCU_FANOUT_LEAF depend
on CONFIG_RCU_EXPERT, so that Kconfig users won't be asked about
CONFIG_RCU_FANOUT_LEAF unless they want to be.

Reported-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Pranith Kumar <bobby.prani@gmail.com>
init/Kconfig
kernel/rcu/tree.c
kernel/rcu/tree.h
kernel/rcu/tree_plugin.h