summaryrefslogtreecommitdiffstats
path: root/kernel/rcu/Kconfig
diff options
context:
space:
mode:
authorPaul E. McKenney2017-05-25 17:05:00 +0200
committerPaul E. McKenney2017-08-17 16:26:04 +0200
commit7e42776d5ed1fe9a941ed8876c5d15cd7cf5d89f (patch)
tree254e896f95ad0aa9e3084645c6779d6b866d6f96 /kernel/rcu/Kconfig
parentrcu: Use timer as backstop for NOCB deferred wakeups (diff)
downloadkernel-qcow2-linux-7e42776d5ed1fe9a941ed8876c5d15cd7cf5d89f.tar.gz
kernel-qcow2-linux-7e42776d5ed1fe9a941ed8876c5d15cd7cf5d89f.tar.xz
kernel-qcow2-linux-7e42776d5ed1fe9a941ed8876c5d15cd7cf5d89f.zip
rcu: Drive TASKS_RCU directly off of PREEMPT
The actual use of TASKS_RCU is only when PREEMPT, otherwise RCU-sched is used instead. This commit therefore makes synchronize_rcu_tasks() and call_rcu_tasks() available always, but mapped to synchronize_sched() and call_rcu_sched(), respectively, when !PREEMPT. This approach also allows some #ifdefs to be removed from rcutorture. Reported-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Reviewed-by: Masami Hiramatsu <mhiramat@kernel.org> Acked-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/rcu/Kconfig')
-rw-r--r--kernel/rcu/Kconfig3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/rcu/Kconfig b/kernel/rcu/Kconfig
index be90c945063f..9210379c0353 100644
--- a/kernel/rcu/Kconfig
+++ b/kernel/rcu/Kconfig
@@ -69,8 +69,7 @@ config TREE_SRCU
This option selects the full-fledged version of SRCU.
config TASKS_RCU
- bool
- default n
+ def_bool PREEMPT
select SRCU
help
This option enables a task-based RCU implementation that uses