]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
soc/fsl/qbman: Use for_each_online_cpu() instead of for_each_cpu()
authorFushuai Wang <wangfushuai@baidu.com>
Mon, 11 Aug 2025 06:52:16 +0000 (14:52 +0800)
committerChristophe Leroy <christophe.leroy@csgroup.eu>
Mon, 22 Sep 2025 19:31:08 +0000 (21:31 +0200)
Replace the opencoded for_each_cpu(cpu, cpu_online_mask) loop with the
more readable and equivalent for_each_online_cpu(cpu) macro.

Signed-off-by: Fushuai Wang <wangfushuai@baidu.com>
Link: https://lore.kernel.org/r/20250811065216.3320-1-wangfushuai@baidu.com
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
drivers/soc/fsl/qbman/qman_test_stash.c

index f4d3c2146f4f0f69457f1a0429e5ff45ab529ee3..6f7597950aa394495d08581d54fad927928b0989 100644 (file)
@@ -103,7 +103,7 @@ static int on_all_cpus(int (*fn)(void))
 {
        int cpu;
 
-       for_each_cpu(cpu, cpu_online_mask) {
+       for_each_online_cpu(cpu) {
                struct bstrap bstrap = {
                        .fn = fn,
                        .started = ATOMIC_INIT(0)