diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2021-09-09 07:47:05 +0200 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2021-09-11 11:02:02 +0200 |
commit | aec7c0925c8e9dc8b1475f3dfec6b54573a8ab17 (patch) | |
tree | 8640ef8fc5b61e218c07084170f35489c5ebce10 | |
parent | f4c1a14f96bde3b4437216092fed43acb2b9f933 (diff) | |
download | u-boot-aec7c0925c8e9dc8b1475f3dfec6b54573a8ab17.zip u-boot-aec7c0925c8e9dc8b1475f3dfec6b54573a8ab17.tar.gz u-boot-aec7c0925c8e9dc8b1475f3dfec6b54573a8ab17.tar.bz2 |
efi_loader: simplify efi_watchdog_timer_notify()
We can call do_reset() directly without invoking the UEFI API.
This decreases the code size.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
-rw-r--r-- | lib/efi_loader/efi_watchdog.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/efi_loader/efi_watchdog.c b/lib/efi_loader/efi_watchdog.c index 61ea0f7..87ca6c5 100644 --- a/lib/efi_loader/efi_watchdog.c +++ b/lib/efi_loader/efi_watchdog.c @@ -27,8 +27,7 @@ static void EFIAPI efi_watchdog_timer_notify(struct efi_event *event, EFI_ENTRY("%p, %p", event, context); printf("\nEFI: Watchdog timeout\n"); - EFI_CALL_VOID(efi_runtime_services.reset_system(EFI_RESET_COLD, - EFI_SUCCESS, 0, NULL)); + do_reset(NULL, 0, 0, NULL); EFI_EXIT(EFI_UNSUPPORTED); } |