Commit 79c11fb
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.de1 parent 437cb3d commit 79c11fb
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10377 | 10377 | | |
10378 | 10378 | | |
10379 | 10379 | | |
| 10380 | + | |
10380 | 10381 | | |
10381 | 10382 | | |
10382 | 10383 | | |
| |||
10387 | 10388 | | |
10388 | 10389 | | |
10389 | 10390 | | |
10390 | | - | |
10391 | | - | |
| 10391 | + | |
| 10392 | + | |
10392 | 10393 | | |
10393 | 10394 | | |
10394 | 10395 | | |
| |||
0 commit comments