]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
powerpc/powernv: Add OPAL soft-poweroff routine
authorJoel Stanley <joel@jms.id.au>
Fri, 30 Jan 2015 06:43:08 +0000 (17:13 +1030)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 4 Feb 2015 02:08:25 +0000 (13:08 +1100)
commit7f43e71e8c538356efd5b33a183e6d9ace4739a5
treeced1bcd20c5d291aef5d7cdcfb85d9ad74b40a50
parenta604c96eb07b2b65734a8aa0e9e8c1bfc435ee4f
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>
arch/powerpc/include/asm/opal.h
arch/powerpc/platforms/powernv/Makefile
arch/powerpc/platforms/powernv/opal-power.c [new file with mode: 0644]