aboutsummaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorYury Norov <[email protected]>2022-01-23 10:38:53 -0800
committerPaul E. McKenney <[email protected]>2022-02-14 10:36:58 -0800
commit6a2c1d450a6a328027280a854019c55de989e14e (patch)
tree1925663bebf81e6f9681cf7e7be9730dc6f3cc98 /net/unix/af_unix.c
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 <[email protected]> Acked-by: Frederic Weisbecker <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions