refscale: Allow refscale without RCU Tasks Rude/Trace
authorPaul E. McKenney <paulmck@kernel.org>
Fri, 25 Mar 2022 22:21:07 +0000 (15:21 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Wed, 20 Apr 2022 23:53:19 +0000 (16:53 -0700)
commitdec86781a54f4a527386a0b86b22e99e2ac67a09
tree15f54ff5dd867e575db7933afe2d7542aa4a4d9d
parent5f654af150fd5aeb9fff138c7cbd72cea016b863
refscale: Allow refscale without RCU Tasks Rude/Trace

Currently, a CONFIG_PREEMPT_NONE=y kernel substitutes normal RCU for
RCU Tasks Rude and RCU Tasks Trace.  Unless that kernel builds refscale,
whether built-in or as a module, in which case these RCU Tasks flavors are
(unnecessarily) built in.  This both increases kernel size and increases
the complexity of certain tracing operations.  This commit therefore
decouples the presence of refscale from the presence of RCU Tasks Rude
and RCU Tasks Trace.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/Kconfig.debug
kernel/rcu/refscale.c
tools/testing/selftests/rcutorture/configs/refscale/CFcommon