]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi_loader: simplify efi_watchdog_timer_notify()
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 9 Sep 2021 05:47:05 +0000 (07:47 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 11 Sep 2021 09:02:02 +0000 (11:02 +0200)
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>
lib/efi_loader/efi_watchdog.c

index 61ea0f79260afcc9ad8a81167c496ee1136cb904..87ca6c5b0b73037b2c6556c71c3ad24cf1b2a75c 100644 (file)
@@ -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);
 }