]> 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)
commit5d644df425424fb9b3bf4545816af7e0b8e319e3
tree121c8626db3bd9313368c00da9b4f56caee315f8
parent2666e63835f2fd7e499423aa6be99f0658024ce1
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