diff options
author | Yury Norov <yury.norov@gmail.com> | 2022-01-23 21:38:51 +0300 |
---|---|---|
committer | Yury Norov <yury.norov@gmail.com> | 2022-06-03 16:52:57 +0300 |
commit | 99248e351a2712154d1120ab003d89635c4e8e72 (patch) | |
tree | 23541d56746569584efc0f7ae75da7b6ce8ae375 /drivers/usb/cdns3/cdns3-debug.h | |
parent | d72002ae67adb1c665e43970685b16645023d639 (diff) | |
download | linux-99248e351a2712154d1120ab003d89635c4e8e72.tar.xz |
genirq/affinity: replace cpumask_weight with cpumask_empty where appropriate
__irq_build_affinity_masks() 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>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions