]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8374a97a0006095f621d7ceb6a01349c64f2dc03
tree121c8626db3bd9313368c00da9b4f56caee315f8
parent7befcbbac17f4392367c9912a988265283e846d5
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