Skip to content

Commit c1ec7c1

Browse files
paulmckrcuurezki
authored andcommitted
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 <paulmck@kernel.org> Cc: Ankur Arora <ankur.a.arora@oracle.com> Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
1 parent 058e877 commit c1ec7c1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/rcu/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ config PREEMPT_RCU
3131

3232
config TINY_RCU
3333
bool
34-
default y if !PREEMPTION && !SMP
34+
default y if !PREEMPT_RCU && !SMP
3535
help
3636
This option selects the RCU implementation that is
3737
designed for UP systems from which real-time response

0 commit comments

Comments
 (0)