OSDN Git Service

cpumask: introduce cpumask_nth_and_andnot
authorYury Norov <yury.norov@gmail.com>
Sat, 21 Jan 2023 04:24:29 +0000 (20:24 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 8 Feb 2023 02:20:00 +0000 (18:20 -0800)
commit62f4386e564d31c7d0ed7d835843e2685f99ae71
tree20506f0aa0bd634895004bb92e2def09f57586fb
parent43245117806ff8914e37327b610fc08b5ddedc91
cpumask: introduce cpumask_nth_and_andnot

Introduce cpumask_nth_and_andnot() based on find_nth_and_andnot_bit().
It's used in the following patch to traverse cpumasks without storing
intermediate result in temporary cpumask.

Signed-off-by: Yury Norov <yury.norov@gmail.com>
Acked-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Peter Lafreniere <peter@n8pjl.ca>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/cpumask.h