diff options
author | 2022-01-23 10:38:51 -0800 | |
---|---|---|
committer | 2022-06-03 06:52:57 -0700 | |
commit | 99248e351a2712154d1120ab003d89635c4e8e72 (patch) | |
tree | 23541d56746569584efc0f7ae75da7b6ce8ae375 /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | irq: mips: replace cpumask_weight with cpumask_empty where appropriate (diff) | |
download | linux-dev-99248e351a2712154d1120ab003d89635c4e8e72.tar.xz linux-dev-99248e351a2712154d1120ab003d89635c4e8e72.zip |
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 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions