]> git.baikalelectronics.ru Git - kernel.git/commit
lib/bitmap: introduce for_each_set_bit_wrap() macro
authorYury Norov <yury.norov@gmail.com>
Mon, 19 Sep 2022 21:05:57 +0000 (14:05 -0700)
committerYury Norov <yury.norov@gmail.com>
Sat, 1 Oct 2022 17:22:57 +0000 (10:22 -0700)
commit3bd95061898de3e8700382cb18cfa9248a38ffa4
treebea4a14dd06b042f19b11db141519aae7c01814f
parent605beefa46e8bd48002972ebfde4c58c3818fc12
lib/bitmap: introduce for_each_set_bit_wrap() macro

Add for_each_set_bit_wrap() macro and use it in for_each_cpu_wrap(). The
new macro is based on __for_each_wrap() iterator, which is simpler and
smaller than cpumask_next_wrap().

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