summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/rtas.h
diff options
context:
space:
mode:
authorNathan Lynch <nathanl@linux.ibm.com>2020-12-07 22:51:36 +0100
committerMichael Ellerman <mpe@ellerman.id.au>2020-12-08 11:40:55 +0100
commit701ba68342412ae9be99a7c7f3badebf95271403 (patch)
treef0c85269797f161893d66df21593ef0a62d01bc1 /arch/powerpc/include/asm/rtas.h
parentpowerpc/rtas: rtas_ibm_suspend_me -> rtas_ibm_suspend_me_unsafe (diff)
downloadlinux-701ba68342412ae9be99a7c7f3badebf95271403.tar.xz
linux-701ba68342412ae9be99a7c7f3badebf95271403.zip
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
Diffstat (limited to 'arch/powerpc/include/asm/rtas.h')
-rw-r--r--arch/powerpc/include/asm/rtas.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/rtas.h b/arch/powerpc/include/asm/rtas.h
index 8436ed01567b..b43165fc6c2a 100644
--- a/arch/powerpc/include/asm/rtas.h
+++ b/arch/powerpc/include/asm/rtas.h
@@ -258,6 +258,7 @@ extern void rtas_progress(char *s, unsigned short hex);
extern int rtas_suspend_cpu(struct rtas_suspend_me_data *data);
extern int rtas_suspend_last_cpu(struct rtas_suspend_me_data *data);
int rtas_ibm_suspend_me_unsafe(u64 handle);
+int rtas_ibm_suspend_me(int *fw_status);
struct rtc_time;
extern time64_t rtas_get_boot_time(void);