Files
Linux/drivers
Yury Norov 3c8bc3954d RDMA/hfi: Replace cpumask_weight with cpumask_empty where appropriate
drivers/infiniband/hw/hfi1/affinity.c 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.

Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Yury Norov <[email protected]>
Reviewed-by: Leon Romanovsky <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
2022-02-11 15:07:30 -04:00
..
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2022-02-03 15:22:03 -08:00
2022-01-22 08:33:37 +02:00
…
2022-01-22 08:33:37 +02:00
…
…
…
…
…
…
…
…
…
…
2022-01-22 08:33:37 +02:00
…
…
2022-01-22 08:33:37 +02:00
…
…