efi/arm64: use UEFI for system reset and poweroff
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 6 Mar 2015 14:49:24 +0000 (15:49 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Sat, 14 Mar 2015 11:00:18 +0000 (11:00 +0000)
commit60c0d45a7f7ab4e30452fa14deb23a33e29adbc2
tree121c8626db3bd9313368c00da9b4f56caee315f8
parent285994a62c80f1d72c6924282bcb59608098d5ec
efi/arm64: use UEFI for system reset and poweroff

If UEFI Runtime Services are available, they are preferred over direct
PSCI calls or other methods to reset the system.

For the reset case, we need to hook into machine_restart(), as the
arm_pm_restart function pointer may be overwritten by modules.

Tested-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Matt Fleming <matt.fleming@intel.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/efi.c
arch/arm64/kernel/process.c