aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorYury Norov <[email protected]>2022-02-10 14:49:09 -0800
committerThomas Gleixner <[email protected]>2022-04-10 22:35:38 +0200
commitc2a911d302b0d014a4d0d732a2bfc319e643eb62 (patch)
tree0f64c293a81e4637a1ddaec7f8456d45090339fb /lib/mpi/mpi-sub-ui.c
parent3a5ff1f6dd50f5e1c2aa87491910dd6d275af24b (diff)
x86/mm: Replace nodes_weight() with nodes_empty() where appropriate
Various mm code calls nodes_weight() to check if any bit of a given nodemask is set. This can be done more efficiently with nodes_empty() because nodes_empty() stops traversing the nodemask as soon as it finds first set bit, while nodes_weight() counts all bits unconditionally. Signed-off-by: Yury Norov <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions