rcu: Forbid RCU_STRICT_GRACE_PERIOD in TINY_RCU kernels
authorPaul E. McKenney <paulmck@kernel.org>
Wed, 18 May 2022 01:03:36 +0000 (18:03 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Tue, 19 Jul 2022 18:39:59 +0000 (11:39 -0700)
The RCU_STRICT_GRACE_PERIOD Kconfig option does nothing in kernels
built with CONFIG_TINY_RCU=y, so this commit adjusts the dependencies
to disallow this combination.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Reviewed-by: Neeraj Upadhyay <quic_neeraju@quicinc.com>
kernel/rcu/Kconfig.debug

index 9b64e55d4f6159f44eac3017ded4b6c67a1803a1..4da05beb13d7913ce97b2443078368796e8251c1 100644 (file)
@@ -121,7 +121,7 @@ config RCU_EQS_DEBUG
 
 config RCU_STRICT_GRACE_PERIOD
        bool "Provide debug RCU implementation with short grace periods"
-       depends on DEBUG_KERNEL && RCU_EXPERT && NR_CPUS <= 4
+       depends on DEBUG_KERNEL && RCU_EXPERT && NR_CPUS <= 4 && !TINY_RCU
        default n
        select PREEMPT_COUNT if PREEMPT=n
        help