From: Paul E. McKenney Date: Wed, 14 Feb 2024 23:33:55 +0000 (-0800) Subject: rcu: Make TINY_RCU depend on !PREEMPT_RCU rather than !PREEMPTION X-Git-Tag: v6.10-rc1~234^2~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c1ec7c158090ab968ab9022a9f67e7d88d66ee61;p=thirdparty%2Fkernel%2Flinux.git rcu: Make TINY_RCU depend on !PREEMPT_RCU rather than !PREEMPTION Right now, TINY_RCU depends on (!PREEMPTION && !SMP), which has served the kernel well for many years due to the fact that PREEMPT_RCU is normally a synonym for PREEMPTION. But with the advent of lazy preemption, it will be possible to have non-preemptible RCU in a preemptible kernel, so that kernels could be built with PREEMPT_RCU=n and PREEMPTION=y. This commit therefore makes TINY_RCU depend on (!PREEMPT_RCU && !SMP), thus allowing for a non-preemptible RCU in preemptible kernels. Signed-off-by: Paul E. McKenney Cc: Ankur Arora Cc: Thomas Gleixner Signed-off-by: Uladzislau Rezki (Sony) --- diff --git a/kernel/rcu/Kconfig b/kernel/rcu/Kconfig index e7d2dd2675931..7dca0138260c3 100644 --- a/kernel/rcu/Kconfig +++ b/kernel/rcu/Kconfig @@ -31,7 +31,7 @@ config PREEMPT_RCU config TINY_RCU bool - default y if !PREEMPTION && !SMP + default y if !PREEMPT_RCU && !SMP help This option selects the RCU implementation that is designed for UP systems from which real-time response