rcu: Disable run-time single-CPU grace-period optimization
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 4 Aug 2022 23:07:04 +0000 (16:07 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Wed, 31 Aug 2022 12:08:08 +0000 (05:08 -0700)
commit258f887aba60c8fc7946a9f379f9a3889f92fc85
tree8af1e32a635fe50b2e4b2324e29d72a9d88d349f
parent8df13f01608ea48712956c0b1afce35bdba5a1c5
rcu: Disable run-time single-CPU grace-period optimization

The run-time single-CPU grace-period optimization applies only to
kernels built with CONFIG_SMP=y && CONFIG_PREEMPTION=y that are running
on a single-CPU system.  But a kernel intended for a single-CPU system
should instead be built with CONFIG_SMP=n, and in any case, single-CPU
systems running Linux no longer appear to be the common case.  Plus this
optimization results in the rcu_gp_oldstate structure being half again
larger than it needs to be.

This commit therefore disables the run-time single-CPU grace-period
optimization, so that this optimization applies only during the
pre-scheduler portion of the boot sequence.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/tree.c