powerpc/xive: Export XIVE IPI information for online-only processors.
authorSachin Sant <sachinp@linux.ibm.com>
Thu, 6 Jan 2022 11:03:53 +0000 (16:33 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 31 Jan 2022 02:45:23 +0000 (13:45 +1100)
commit279d1a72c0f8021520f68ddb0a1346ff9ba1ea8c
tree66e33d78467fcd94f7e49d4c7be29cba05124cab
parent26291c54e111ff6ba87a164d85d4a4e134b7315c
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
arch/powerpc/sysdev/xive/common.c