powerpc/rtas: add rtas_ibm_suspend_me()
authorNathan Lynch <nathanl@linux.ibm.com>
Mon, 7 Dec 2020 21:51:36 +0000 (15:51 -0600)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 8 Dec 2020 10:40:55 +0000 (21:40 +1100)
commit701ba68342412ae9be99a7c7f3badebf95271403
treef0c85269797f161893d66df21593ef0a62d01bc1
parent7049b288ea8c95f270ec8fe643e3c3187938d5af
powerpc/rtas: add rtas_ibm_suspend_me()

Now that the name is available, provide a simple wrapper for
ibm,suspend-me which returns both a Linux errno and optionally the
actual RTAS status to the caller.

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-5-nathanl@linux.ibm.com
arch/powerpc/include/asm/rtas.h
arch/powerpc/kernel/rtas.c