Home
last modified time | relevance | path

Searched hist:b6dad11d (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/arch/ia64/kernel/
H A Dsetup.cb6dad11d Sun Jan 23 12:38:45 CST 2022 Yury Norov <yury.norov@gmail.com> arch/ia64: replace cpumask_weight with cpumask_empty where appropriate

setup_arch() 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>