]> git.baikalelectronics.ru Git - kernel.git/commit
rcu: Make PREEMPT_RCU be a modifier to TREE_RCU
authorLai Jiangshan <laijs@linux.alibaba.com>
Tue, 15 Oct 2019 02:55:57 +0000 (02:55 +0000)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 9 Dec 2019 20:37:51 +0000 (12:37 -0800)
commite26b7f833e922dd44610759bb728d71950c9efd5
treecfd14a3d775bbd4fa72d055d676b8b90b953f26d
parentd54b61c5fd8fe993941eed091cc5ae3611a81289
rcu: Make PREEMPT_RCU be a modifier to TREE_RCU

Currently PREEMPT_RCU and TREE_RCU are mutually exclusive Kconfig
options.  But PREEMPT_RCU actually specifies a kind of TREE_RCU,
namely a preemptible TREE_RCU. This commit therefore makes PREEMPT_RCU
be a modifer to the TREE_RCU Kconfig option.  This has the benefit of
simplifying several of the #if expressions that formerly needed to
check both, but now need only check one or the other.

Signed-off-by: Lai Jiangshan <laijs@linux.alibaba.com>
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com>
Reviewed-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
include/linux/rcupdate.h
include/trace/events/rcu.h
kernel/rcu/Kconfig
kernel/rcu/Makefile
kernel/rcu/rcu.h
kernel/rcu/update.c
kernel/sysctl.c