projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c32bb1
)
efi_loader: implement EFI_RESET_SHUTDOWN at boot time
author
Heinrich Schuchardt
<xypron.glpk@gmx.de>
Tue, 16 Oct 2018 05:44:53 +0000
(07:44 +0200)
committer
Alexander Graf
<agraf@suse.de>
Sun, 2 Dec 2018 20:59:36 +0000
(21:59 +0100)
Allow an EFI application to shut down the system.
If EFI_RESET_SHUTDOWN is issued call do_poweroff().
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
lib/efi_loader/efi_runtime.c
patch
|
blob
|
history
diff --git
a/lib/efi_loader/efi_runtime.c
b/lib/efi_loader/efi_runtime.c
index f059dc97fd4579f113b6b3f7a7c1fee696b952dd..abcf03c5a42eee50c93401334c3563fa11f07117 100644
(file)
--- a/
lib/efi_loader/efi_runtime.c
+++ b/
lib/efi_loader/efi_runtime.c
@@
-141,7
+141,9
@@
static void EFIAPI efi_reset_system_boottime(
do_reset(NULL, 0, 0, NULL);
break;
case EFI_RESET_SHUTDOWN:
- /* We don't have anything to map this to */
+#ifdef CONFIG_CMD_POWEROFF
+ do_poweroff(NULL, 0, 0, NULL);
+#endif
break;
}