diff options
author | Sachin Sant <sachinp@linux.ibm.com> | 2022-01-06 12:03:53 +0100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2022-01-31 03:45:23 +0100 |
commit | 279d1a72c0f8021520f68ddb0a1346ff9ba1ea8c (patch) | |
tree | 66e33d78467fcd94f7e49d4c7be29cba05124cab | |
parent | Linux 5.17-rc2 (diff) | |
download | linux-279d1a72c0f8021520f68ddb0a1346ff9ba1ea8c.tar.xz linux-279d1a72c0f8021520f68ddb0a1346ff9ba1ea8c.zip |
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 <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
-rw-r--r-- | arch/powerpc/sysdev/xive/common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/sysdev/xive/common.c b/arch/powerpc/sysdev/xive/common.c index 1ca5564bda9d..32863b4daf72 100644 --- a/arch/powerpc/sysdev/xive/common.c +++ b/arch/powerpc/sysdev/xive/common.c @@ -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; } |