cpumask: switch for_each_cpu{,_not} to use for_each_bit()
authorYury Norov <yury.norov@gmail.com>
Mon, 19 Sep 2022 21:05:55 +0000 (14:05 -0700)
committerYury Norov <yury.norov@gmail.com>
Sat, 1 Oct 2022 17:22:57 +0000 (10:22 -0700)
commit33e67710beda78aed38a2fe10be6088d4aeb1c53
treea551250dc8b2dc899bbad6b7a39e5596868f1216
parent854701ba4c39afae2362ba19a580c461cb183e4f
cpumask: switch for_each_cpu{,_not} to use for_each_bit()

The difference between for_each_cpu() and for_each_set_bit()
is that the latter uses cpumask_next() instead of find_next_bit(),
and so calls cpumask_check().

This check is useless because the iterator value is not provided by
user. It generates false-positives for the very last iteration
of for_each_cpu().

Signed-off-by: Yury Norov <yury.norov@gmail.com>
include/linux/cpumask.h
include/linux/find.h