Skip to content

Commit

Permalink
powerpc/xive: Export XIVE IPI information for online-only processors.
Browse files Browse the repository at this point in the history
Cédric pointed out that XIVE IPI information exported via sysfs
(debug/powerpc/xive) display empty lines for processors which are
not online.

Switch to using for_each_online_cpu() so that information is
displayed for online-only processors.

Reported-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Sachin Sant <sachinp@linux.ibm.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/164146703333.19039.10920919226094771665.sendpatchset@MacBook-Pro.local
  • Loading branch information
Sachin Sant authored and Michael Ellerman committed Jan 31, 2022
1 parent 26291c5 commit 279d1a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/sysdev/xive/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -1791,7 +1791,7 @@ static int xive_ipi_debug_show(struct seq_file *m, void *private)
if (xive_ops->debug_show)
xive_ops->debug_show(m, private);

for_each_possible_cpu(cpu)
for_each_online_cpu(cpu)
xive_debug_show_ipi(m, cpu);
return 0;
}
Expand Down

0 comments on commit 279d1a7

Please sign in to comment.