From: Fushuai Wang Date: Mon, 11 Aug 2025 06:52:16 +0000 (+0800) Subject: soc/fsl/qbman: Use for_each_online_cpu() instead of for_each_cpu() X-Git-Tag: v6.18-rc1~145^2~1^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5498f07842cbddd86c725b960acb8e478684ca45;p=thirdparty%2Flinux.git soc/fsl/qbman: Use for_each_online_cpu() instead of for_each_cpu() 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 Link: https://lore.kernel.org/r/20250811065216.3320-1-wangfushuai@baidu.com Signed-off-by: Christophe Leroy --- diff --git a/drivers/soc/fsl/qbman/qman_test_stash.c b/drivers/soc/fsl/qbman/qman_test_stash.c index f4d3c2146f4f0..6f7597950aa39 100644 --- a/drivers/soc/fsl/qbman/qman_test_stash.c +++ b/drivers/soc/fsl/qbman/qman_test_stash.c @@ -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)