summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include
diff options
context:
space:
mode:
authorJoel Stanley2015-01-30 07:43:08 +0100
committerMichael Ellerman2015-02-04 03:08:25 +0100
commit7f43e71e8c538356efd5b33a183e6d9ace4739a5 (patch)
treeced1bcd20c5d291aef5d7cdcfb85d9ad74b40a50 /arch/powerpc/include
parentMerge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/scottwoo... (diff)
downloadkernel-qcow2-linux-7f43e71e8c538356efd5b33a183e6d9ace4739a5.tar.gz
kernel-qcow2-linux-7f43e71e8c538356efd5b33a183e6d9ace4739a5.tar.xz
kernel-qcow2-linux-7f43e71e8c538356efd5b33a183e6d9ace4739a5.zip
powerpc/powernv: Add OPAL soft-poweroff routine
Register a notifier for a OPAL message indicating that the machine should prepare itself for a graceful power off. OPAL will tell us if the power off is a reboot or shutdown, but for now we perform the same orderly_poweroff action. Signed-off-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r--arch/powerpc/include/asm/opal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/opal.h b/arch/powerpc/include/asm/opal.h
index 2baf8a5925ca..9ee0a30a02ce 100644
--- a/arch/powerpc/include/asm/opal.h
+++ b/arch/powerpc/include/asm/opal.h
@@ -304,7 +304,7 @@ enum OpalMessageType {
*/
OPAL_MSG_MEM_ERR,
OPAL_MSG_EPOW,
- OPAL_MSG_SHUTDOWN,
+ OPAL_MSG_SHUTDOWN, /* params[0] = 1 reboot, 0 shutdown */
OPAL_MSG_HMI_EVT,
OPAL_MSG_TYPE_MAX,
};