[PATCH 0/4] cpumask: add missing API and simplify cpumask_any_housekeeping()

Yury Norov
2025-04-07T15:38:59Z

From: Yury Norov [NVIDIA] <yury.norov@gmail.com>

cpumask library missed some flavors of cpumask_any_but(), which makes
users to workaround it by using less efficient cpumask_nth() functions.

Yury Norov (4):
relax cpumask_any_but()
find: add find_first_andnot_bit()
cpumask_first_andnot
resctrl

arch/x86/kernel/cpu/resctrl/internal.h | 28 +++-------
include/linux/cpumask.h | 71 +++++++++++++++++++++++++-
include/linux/find.h | 25 +++++++++
lib/find_bit.c | 11 ++++
4 files changed, 112 insertions(+), 23 deletions(-)

--
2.43.0