linux-kernelorg-stable/include
Thomas Gleixner 437cb3ded2 cpumask: Introduce cpumask_weighted_or()
CID management OR's two cpumasks and then calculates the weight on the
result. That's inefficient as that has to walk the same stuff twice. As
this is done with runqueue lock held, there is a real benefit of speeding
this up. Depending on the system this results in 10-20% less cycles spent
with runqueue lock held for a 4K cpumask.

Provide cpumask_weighted_or() and the corresponding bitmap functions which
return the weight of the OR result right away.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Yury Norov (NVIDIA) <yury.norov@gmail.com>
Reviewed-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Link: https://patch.msgid.link/20251119172549.448263340@linutronix.de
2025-11-20 12:14:54 +01:00
..
acpi
asm-generic rseq: Switch to TIF_RSEQ if supported 2025-11-04 08:35:37 +01:00
clocksource
crypto
cxl
drm
dt-bindings
hyperv
keys
kunit
kvm
linux cpumask: Introduce cpumask_weighted_or() 2025-11-20 12:14:54 +01:00
math-emu
media
memory
misc
net
pcmcia
ras
rdma
rv
scsi
soc
sound
target
trace rseq: Cache CPU ID and MM CID values 2025-11-04 08:32:14 +01:00
uapi rseq: Simplify the event notification 2025-11-04 08:30:09 +01:00
ufs
vdso
video
xen
Kbuild