]> git.baikalelectronics.ru Git - kernel.git/commit
cpumask: Introduce for_each_cpu_andnot()
authorValentin Schneider <vschneid@redhat.com>
Mon, 3 Oct 2022 15:34:18 +0000 (16:34 +0100)
committerYury Norov <yury.norov@gmail.com>
Thu, 6 Oct 2022 12:57:36 +0000 (05:57 -0700)
commit425481eda3b83be8c39da4addbcac67e2df5671a
tree3d5bc8c5fe350f59a27426efb5b2de4c75f6fa31
parent37a85bb6dd3442f2b3f9b8bc6247508d2b42d369
cpumask: Introduce for_each_cpu_andnot()

for_each_cpu_and() is very convenient as it saves having to allocate a
temporary cpumask to store the result of cpumask_and(). The same issue
applies to cpumask_andnot() which doesn't actually need temporary storage
for iteration purposes.

Following what has been done for for_each_cpu_and(), introduce
for_each_cpu_andnot().

Signed-off-by: Valentin Schneider <vschneid@redhat.com>
include/linux/cpumask.h
include/linux/find.h