On Thu, Mar 16, 2023 at 12:19:19AM +0100, Frederic Weisbecker wrote: > Le Wed, Mar 15, 2023 at 07:43:44PM +0000, Joel Fernandes (Google) a écrit : > > From: Zqiang <qiang1.zhang@xxxxxxxxx> > > > > The lazy_rcu_shrink_count() shrinker function is registered even in > > kernels built with CONFIG_RCU_LAZY=n, in which case this function > > uselessly consumes cycles learning that no CPU has any lazy callbacks > > queued. > > > > This commit therefore registers this shrinker function only in the kernels > > built with CONFIG_RCU_LAZY=y, where it might actually do something useful. > > > > Signed-off-by: Zqiang <qiang1.zhang@xxxxxxxxx> > > Reviewed-by: Joel Fernandes (Google) <joel@xxxxxxxxxxxxxxxxx> > > Signed-off-by: Paul E. McKenney <paulmck@xxxxxxxxxx> > > Signed-off-by: Joel Fernandes (Google) <joel@xxxxxxxxxxxxxxxxx> > > Reviewed-by: Frederic Weisbecker <frederic@xxxxxxxxxx> Thanks! - Joel