Thread (11 messages) flat view 11 messages, 5 authors, 2014-08-30
STALE4402d

[PATCH 1/2] efi/arm64: use UEFI for system poweroff

From: mark.rutland@arm.com (Mark Rutland)
Date: 2014-08-29 16:01:51

Hi Ard,

On Fri, Aug 29, 2014 at 04:05:56PM +0100, Ard Biesheuvel wrote:
If UEFI Runtime Services are available, they are preferred over direct
PSCI calls or other methods to power down the system.
Could you elaborate on why they should be preferred?

Mark.
quoted hunk ↗ jump to hunk
Enable the existing efi_reboot() code by supplying a definition of
efi_poweroff_required() that returns true.

Signed-off-by: Ard Biesheuvel <redacted>
---
 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


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help