ppc/pnv: Introduce pnv_chip_foreach_cpu()
commit80ce0d5874d60dac171ec9395a2aaba91a25c1c7
authorCédric Le Goater <clg@redhat.com>
Wed, 24 Apr 2024 09:30:48 +0000 (24 11:30 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Wed, 19 Jun 2024 10:40:49 +0000 (19 12:40 +0200)
tree30a2c2f511ea9fe0b3d5bb908b9257f0d3f973a8
parent795eaa62fa68c452b926fbfc4ccdcb4cd1552531
ppc/pnv: Introduce pnv_chip_foreach_cpu()

This helper routine uses the machine definition, sockets, cores and
threads, to loop on all CPUs of the machine. Replace CPU_FOREACH()
with it.

Signed-off-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20240424093048.180966-1-clg@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
hw/ppc/pnv.c