diff options
author | Zqiang <[email protected]> | 2023-01-30 15:17:37 +0800 |
---|---|---|
committer | Joel Fernandes (Google) <[email protected]> | 2023-04-05 13:47:43 +0000 |
commit | 2450b78e0bb1e034eaa2a33dca689282bd8c892a (patch) | |
tree | d289de27675ab21ee8a723e069252e5cf7b0d2b1 /tools/perf/scripts/python/stackcollapse.py | |
parent | db7b464df9d820186e98a65aa6a10f0d51fbf8ce (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 <[email protected]>
Reviewed-by: Frederic Weisbecker <[email protected]>
Reviewed-by: Joel Fernandes (Google) <[email protected]>
Signed-off-by: Paul E. McKenney <[email protected]>
Signed-off-by: Joel Fernandes (Google) <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions