]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pseries/dlpar: use rtas_get_sensor()
authorNathan Lynch <nathanl@linux.ibm.com>
Tue, 4 May 2021 02:53:29 +0000 (21:53 -0500)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 25 Jun 2021 04:47:20 +0000 (14:47 +1000)
commitaf2f4c51b92f0a239d4b143133d0c61e3e153b06
treee5e1cb50e51077ab9d64dfa22cd12274a1ac6bf4
parent9fd16b1f477503b2606e8abee1760a3d5bfaaf30
powerpc/pseries/dlpar: use rtas_get_sensor()

Instead of making bare calls to get-sensor-state, use
rtas_get_sensor(), which correctly handles busy and extended delay
statuses.

Fixes: 2dd0c4d076eb ("powerpc/pseries: Kernel DLPAR Infrastructure")
Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
Reviewed-by: Laurent Dufour <ldufour@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210504025329.1713878-1-nathanl@linux.ibm.com
arch/powerpc/platforms/pseries/dlpar.c