Commit 5498f078 authored by Fushuai Wang's avatar Fushuai Wang Committed by Christophe Leroy
Browse files

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: default avatarFushuai Wang <wangfushuai@baidu.com>
Link: https://lore.kernel.org/r/20250811065216.3320-1-wangfushuai@baidu.com


Signed-off-by: default avatarChristophe Leroy <christophe.leroy@csgroup.eu>
parent e9713655
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)