diff options
author | Yury Norov <yury.norov@gmail.com> | 2022-01-23 19:38:55 +0100 |
---|---|---|
committer | Yury Norov <yury.norov@gmail.com> | 2022-06-03 15:52:57 +0200 |
commit | 95e3a97387d6c396172f944b45bd515c7d1e8bc2 (patch) | |
tree | edc655fb6e42adaf296143e24830ef8357662c77 /mm/vmstat.c | |
parent | genirq/affinity: replace cpumask_weight with cpumask_empty where appropriate (diff) | |
download | linux-95e3a97387d6c396172f944b45bd515c7d1e8bc2.tar.xz linux-95e3a97387d6c396172f944b45bd515c7d1e8bc2.zip |
clocksource: replace cpumask_weight with cpumask_empty in clocksource.c
clocksource_verify_percpu() 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 'mm/vmstat.c')
0 files changed, 0 insertions, 0 deletions