diff options
author | Yury Norov <[email protected]> | 2022-02-10 14:49:06 -0800 |
---|---|---|
committer | Peter Zijlstra <[email protected]> | 2022-02-16 15:57:53 +0100 |
commit | 1087ad4e3f88c474b8134a482720782922bf3fdf (patch) | |
tree | 93a95570454dd39c349d0e99bf1aab4408e6e218 /lib/test_fortify/write_overflow-strlcpy-src.c | |
parent | 3624ba7b5e2acc02b01301ea5fd3534971eb9896 (diff) |
sched: replace cpumask_weight with cpumask_empty where appropriate
In some places, kernel/sched code 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 <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'lib/test_fortify/write_overflow-strlcpy-src.c')
0 files changed, 0 insertions, 0 deletions