diff options
author | Yury Norov <yury.norov@gmail.com> | 2022-01-23 10:38:55 -0800 |
---|---|---|
committer | Yury Norov <yury.norov@gmail.com> | 2022-06-03 06:52:57 -0700 |
commit | 95e3a97387d6c396172f944b45bd515c7d1e8bc2 (patch) | |
tree | edc655fb6e42adaf296143e24830ef8357662c77 /mm | |
parent | 99248e351a2712154d1120ab003d89635c4e8e72 (diff) | |
download | linux-95e3a97387d6c396172f944b45bd515c7d1e8bc2.tar.gz linux-95e3a97387d6c396172f944b45bd515c7d1e8bc2.tar.bz2 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')
0 files changed, 0 insertions, 0 deletions