aboutsummaryrefslogtreecommitdiff
path: root/include/linux/cma.h
diff options
context:
space:
mode:
authorYury Norov2022-01-23 10:38:53 -0800
committerPaul E. McKenney2022-02-14 10:36:58 -0800
commit6a2c1d450a6a328027280a854019c55de989e14e (patch)
tree1925663bebf81e6f9681cf7e7be9730dc6f3cc98 /include/linux/cma.h
parente6339d3b443c436c3b8f45eefec2212a8c07065d (diff)
rcu: Replace cpumask_weight with cpumask_empty where appropriate
In some places, RCU code calls cpumask_weight() to check if any bit of a given cpumask is set. We can do it more efficiently with cpumask_empty() because cpumask_empty() stops traversing the cpumask as soon as it finds first set bit, while cpumask_weight() counts all bits unconditionally. Signed-off-by: Yury Norov <yury.norov@gmail.com> Acked-by: Frederic Weisbecker <frederic@kernel.org> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'include/linux/cma.h')
0 files changed, 0 insertions, 0 deletions