diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2015-04-20 08:42:50 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2015-05-27 15:59:03 -0400 |
commit | 82d0f4c089991e6b302d961f0320282bf91652d7 (patch) | |
tree | 1ba0f3bd15f4746888499523d86462f1ae054caf | |
parent | 0f41c0ddadfb3d5baffe62351c380e2881aacd58 (diff) |
rcu: Directly drive TASKS_RCU from Kconfig
Currently, Kconfig will ask the user whether TASKS_RCU should be set.
This is silly because Kconfig already has all the information that it
needs to set this parameter. This commit therefore directly drives
the value of TASKS_RCU via "select" statements. Which means that
as subsystems require TASKS_RCU, those subsystems will need to add
"select" statements of their own.
Reported-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Reviewed-by: Pranith Kumar <bobby.prani@gmail.com>
-rw-r--r-- | init/Kconfig | 4 | ||||
-rw-r--r-- | lib/Kconfig.debug | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/init/Kconfig b/init/Kconfig index dc24dec60232..73db30a76afa 100644 --- a/init/Kconfig +++ b/init/Kconfig | |||
@@ -509,7 +509,7 @@ config SRCU | |||
509 | sections. | 509 | sections. |
510 | 510 | ||
511 | config TASKS_RCU | 511 | config TASKS_RCU |
512 | bool "Task_based RCU implementation using voluntary context switch" | 512 | bool |
513 | default n | 513 | default n |
514 | select SRCU | 514 | select SRCU |
515 | help | 515 | help |
@@ -517,8 +517,6 @@ config TASKS_RCU | |||
517 | only voluntary context switch (not preemption!), idle, and | 517 | only voluntary context switch (not preemption!), idle, and |
518 | user-mode execution as quiescent states. | 518 | user-mode execution as quiescent states. |
519 | 519 | ||
520 | If unsure, say N. | ||
521 | |||
522 | config RCU_STALL_COMMON | 520 | config RCU_STALL_COMMON |
523 | def_bool ( TREE_RCU || PREEMPT_RCU || RCU_TRACE ) | 521 | def_bool ( TREE_RCU || PREEMPT_RCU || RCU_TRACE ) |
524 | help | 522 | help |
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index e1af93ae246b..c4e1cf04cf57 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug | |||
@@ -1233,6 +1233,7 @@ config RCU_TORTURE_TEST | |||
1233 | depends on DEBUG_KERNEL | 1233 | depends on DEBUG_KERNEL |
1234 | select TORTURE_TEST | 1234 | select TORTURE_TEST |
1235 | select SRCU | 1235 | select SRCU |
1236 | select TASKS_RCU | ||
1236 | default n | 1237 | default n |
1237 | help | 1238 | help |
1238 | This option provides a kernel module that runs torture tests | 1239 | This option provides a kernel module that runs torture tests |