linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] efi/arm64: use UEFI for system poweroff
@ 2014-08-29 15:05 Ard Biesheuvel
  2014-08-29 15:05 ` [PATCH 2/2] efi/arm64: use UEFI for system reset Ard Biesheuvel
  2014-08-29 16:01 ` [PATCH 1/2] efi/arm64: use UEFI for system poweroff Mark Rutland
  0 siblings, 2 replies; 11+ messages in thread
From: Ard Biesheuvel @ 2014-08-29 15:05 UTC (permalink / raw)
  To: linux-arm-kernel

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

Enable the existing efi_reboot() code by supplying a definition of
efi_poweroff_required() that returns true.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
---
 arch/arm64/kernel/efi.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm64/kernel/efi.c b/arch/arm64/kernel/efi.c
index e72f3100958f..78c85c4252bc 100644
--- a/arch/arm64/kernel/efi.c
+++ b/arch/arm64/kernel/efi.c
@@ -475,3 +475,11 @@ err_unmap:
 	return -1;
 }
 early_initcall(arm64_enter_virtual_mode);
+
+/*
+ * Override the weak definition in drivers/firmware/efi/reboot.c
+ */
+bool efi_poweroff_required(void)
+{
+	return true;
+}
-- 
1.8.3.2

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-08-30  2:17 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-29 15:05 [PATCH 1/2] efi/arm64: use UEFI for system poweroff Ard Biesheuvel
2014-08-29 15:05 ` [PATCH 2/2] efi/arm64: use UEFI for system reset Ard Biesheuvel
2014-08-29 15:57   ` Mark Salter
2014-08-29 16:04   ` Catalin Marinas
2014-08-29 16:12     ` Ard Biesheuvel
2014-08-29 16:25       ` Catalin Marinas
2014-08-29 16:43         ` Ard Biesheuvel
2014-08-30  2:17         ` Leif Lindholm
2014-08-29 17:57       ` Mark Rutland
2014-08-29 16:06   ` Mark Rutland
2014-08-29 16:01 ` [PATCH 1/2] efi/arm64: use UEFI for system poweroff Mark Rutland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).