powerpc/xive: Export XIVE IPI information for online-only processors.
PATCH 1/1 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.
---
arch/powerpc/sysdev/xive/common.c +1 -1
@@ -1791,7 +1791,7 @@ static int xive_ipi_debug_show(struct seif (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 ; }
Quoted 9 lines · Sachin Sant
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]>
Thanks,
C.
Quoted 14 lines
---
diff -Naurp a/arch/pwerpc/sysdev/xive/common.cb/arch/powerpc/sysdev/xive/common.carch/powerpc/sysdev/xive/common.c +1
-1@@ -1791,7 +1791,7 @@ static int xive_ipi_debug_show(struct seif (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 ; }
Michael Ellerman
AppliedQuoted 8 lines · Sachin Sant
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.[...]
Applied to powerpc/next.
[1/1] powerpc/xive: Export XIVE IPI information for online-only processors.
https://git.kernel.org/powerpc/c/279d1a72c0f8021520f68ddb0a1346ff9ba1ea8c
cheers