Skip to content

Commit 279d1a7

Browse files
sacsantmpe
authored andcommitted
powerpc/xive: Export XIVE IPI information for online-only processors.
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 <[email protected]> Signed-off-by: Sachin Sant <[email protected]> Reviewed-by: Cédric Le Goater <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/164146703333.19039.10920919226094771665.sendpatchset@MacBook-Pro.local
1 parent 26291c5 commit 279d1a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/powerpc/sysdev/xive/common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1791,7 +1791,7 @@ static int xive_ipi_debug_show(struct seq_file *m, void *private)
17911791
if (xive_ops->debug_show)
17921792
xive_ops->debug_show(m, private);
17931793

1794-
for_each_possible_cpu(cpu)
1794+
for_each_online_cpu(cpu)
17951795
xive_debug_show_ipi(m, cpu);
17961796
return 0;
17971797
}

0 commit comments

Comments
 (0)