]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
powerpc/pseries/lparcfg: Use num_possible_cpus() for potential processors
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Thu, 10 Oct 2024 07:01:26 +0000 (09:01 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 2 Nov 2024 11:37:35 +0000 (12:37 +0100)
commite07359f171f2440f4dbc98339b10c8c3cdd48a20
treed3c961691d4b4c70e42709ac505e09c27f0a5f80
parentaf2c15920a114a7acea4dcbf9cd4a7b0ff469780
powerpc/pseries/lparcfg: Use num_possible_cpus() for potential processors

The systemcfg processorCount variable tracks currently online variables,
not possible ones, so the stored value is wrong.
The code preferably tries to use the ibm,lrdr-capacity field 4 which
"represents the maximum number of processors that the guest can have."
Switch from processorCount to the better matching num_possible_cpus().

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20241010-vdso-generic-base-v1-24-b64f0842d512@linutronix.de
arch/powerpc/platforms/pseries/lparcfg.c