powerpc/pseries/mobility: signal suspend cancellation to platform
authorNathan Lynch <nathanl@linux.ibm.com>
Mon, 7 Dec 2020 21:51:45 +0000 (15:51 -0600)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 8 Dec 2020 10:40:58 +0000 (21:40 +1100)
commit37cddc7d6cf4568a7fb69aeff6f26e4c8a3bc0f7
treed703b5ccacacc10e8c7b01687e8ff9a29a008710
parent9327dc0aeef36a3cbb9d94f79b79cc4f91ff8a41
powerpc/pseries/mobility: signal suspend cancellation to platform

If we're returning an error to user space, use H_VASI_SIGNAL to send a
cancellation request to the platform. This isn't strictly required but
it communicates that Linux will not attempt to complete the suspend,
which allows the various entities involved to promptly end the
operation in progress.

Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20201207215200.1785968-14-nathanl@linux.ibm.com
arch/powerpc/platforms/pseries/mobility.c