cpumask: Introduce cpumask_first_and_and()
authorDawei Li <dawei.li@shingroup.cn>
Tue, 16 Apr 2024 08:54:48 +0000 (16:54 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 24 Apr 2024 19:23:49 +0000 (21:23 +0200)
commitcdc66553c4130735f0a2db943a5259e54ff1597a
treeec3ebe0bd50ede88a8dc482b80aacb2412a25e4b
parentc7cad38d37486668a448215fc92bace9c8cf747a
cpumask: Introduce cpumask_first_and_and()

Introduce cpumask_first_and_and() to get intersection between 3 cpumasks,
free of any intermediate cpumask variable. Instead, cpumask_first_and_and()
works in-place with all inputs and produces desired output directly.

Signed-off-by: Dawei Li <dawei.li@shingroup.cn>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Yury Norov <yury.norov@gmail.com>
Link: https://lore.kernel.org/r/20240416085454.3547175-2-dawei.li@shingroup.cn
include/linux/cpumask.h
include/linux/find.h
lib/find_bit.c