]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
sched/mmcid: Use cpumask_weighted_or()
authorThomas Gleixner <tglx@linutronix.de>
Wed, 19 Nov 2025 17:26:59 +0000 (18:26 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 20 Nov 2025 11:14:54 +0000 (12:14 +0100)
commit79c11fb3da8581a2f222b290ce62a153ab1108fc
tree3d2bda823bf87244b6c189822da17b51d9adc4f6
parent437cb3ded25038d5280d21de489ce78c745118d5
sched/mmcid: Use cpumask_weighted_or()

Use cpumask_weighted_or() instead of cpumask_or() and cpumask_weight() on
the result, which walks the same bitmap twice. Results in 10-20% less
cycles, which reduces the runqueue lock hold time.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Acked-by: Yury Norov (NVIDIA) <yury.norov@gmail.com>
Link: https://patch.msgid.link/20251119172549.511736272@linutronix.de
kernel/sched/core.c