rcu: Make RCU able to tolerate undefined CONFIG_RCU_KTHREAD_PRIO
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 21 Apr 2015 16:22:14 +0000 (09:22 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 27 May 2015 19:59:06 +0000 (12:59 -0700)
commit26730f55c2842b4ee06a5307d58265db7dd26065
tree98ea25356350f8ce1b694b704ddf9b3700daf16f
parent47d631af58bb9b2f2dd3d0da8c98a79a5e75c738
rcu: Make RCU able to tolerate undefined CONFIG_RCU_KTHREAD_PRIO

This commit updates the initialization of the kthread_prio boot parameter
so that RCU will build even when CONFIG_RCU_KTHREAD_PRIO is undefined.
The kthread_prio boot parameter is set to CONFIG_RCU_KTHREAD_PRIO if
that is defined, otherwise to 1 if CONFIG_RCU_BOOST is defined and
to zero otherwise.  This commit then makes CONFIG_RCU_KTHREAD_PRIO
depend on CONFIG_RCU_EXPERT, so that Kconfig users won't be asked about
CONFIG_RCU_KTHREAD_PRIO unless they want to be.

Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
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