summaryrefslogtreecommitdiff
path: root/kernel/fail_function.c
diff options
context:
space:
mode:
authorZqiang <qiang1.zhang@intel.com>2023-01-30 15:17:37 +0800
committerJoel Fernandes (Google) <joel@joelfernandes.org>2023-04-05 13:47:43 +0000
commit2450b78e0bb1e034eaa2a33dca689282bd8c892a (patch)
treed289de27675ab21ee8a723e069252e5cf7b0d2b1 /kernel/fail_function.c
parentdb7b464df9d820186e98a65aa6a10f0d51fbf8ce (diff)
rcu: Register rcu-lazy shrinker only for CONFIG_RCU_LAZY=y kernels
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@intel.com> Reviewed-by: Frederic Weisbecker <frederic@kernel.org> Reviewed-by: Joel Fernandes (Google) <joel@joelfernandes.org> Signed-off-by: Paul E. McKenney <paulmck@kernel.org> Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Diffstat (limited to 'kernel/fail_function.c')
0 files changed, 0 insertions, 0 deletions