powerpc/pseries/lparcfg: convert to papr_sysparm API
authorNathan Lynch <nathanl@linux.ibm.com>
Fri, 10 Feb 2023 18:42:04 +0000 (12:42 -0600)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 13 Feb 2023 11:35:03 +0000 (22:35 +1100)
commitfff9846be00c467b4a277492af5be8487b6540e9
treeaed196e5993e755b04e920c25a4ec2158a6e8d67
parentb8dc71774a51182185ae197ed2f8bd085ce6c848
powerpc/pseries/lparcfg: convert to papr_sysparm API

/proc/powerpc/lparcfg derives the LPAR name and SPLPAR characteristics
it reports using bare calls to the RTAS ibm,get-system-parameter
function. Convert these to the higher-level papr_sysparm API, which
handles the tedious details.

While the SPLPAR string parsing code could stand to be updated, that
should be done in a separate change. It is minimally modified here to
reduce the risk of changing behavior.

Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20230125-b4-powerpc-rtas-queue-v3-16-26929c8cce78@linux.ibm.com
arch/powerpc/platforms/pseries/lparcfg.c