cpumask: Relax cpumask_any_but()
authorYury Norov [NVIDIA] <yury.norov@gmail.com>
Thu, 15 May 2025 16:58:31 +0000 (16:58 +0000)
committerBorislav Petkov (AMD) <bp@alien8.de>
Thu, 15 May 2025 18:24:22 +0000 (20:24 +0200)
commit189572bf4e005431051319def435ac4b7e4489ca
tree00713fa9bfd1191ea2fb1f0e8f2c9847905719b0
parent82f2b0b97b36ee3fcddf0f0780a9a0825d52fec3
cpumask: Relax cpumask_any_but()

Similarly to other cpumask search functions, accept -1, and consider it as
'any CPU' hint. This helps users to avoid coding special cases.

Signed-off-by: Yury Norov [NVIDIA] <yury.norov@gmail.com>
Signed-off-by: James Morse <james.morse@arm.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: James Morse <james.morse@arm.com>
Reviewed-by: Reinette Chatre <reinette.chatre@intel.com>
Reviewed-by: Fenghua Yu <fenghuay@nvidia.com>
Tested-by: James Morse <james.morse@arm.com>
Tested-by: Tony Luck <tony.luck@intel.com>
Tested-by: Fenghua Yu <fenghuay@nvidia.com>
Link: https://lore.kernel.org/20250515165855.31452-2-james.morse@arm.com
include/linux/cpumask.h