OSDN Git Service

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)
commit5f75ff295c662c1c8fb9e1737e9dc3b9a1e7fb29
tree3d5bc8c5fe350f59a27426efb5b2de4c75f6fa31
parent90d482908eedd56f01a707325aa541cf9c40f936
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