mirror of
https://github.com/u-boot/u-boot.git
synced 2024-12-12 22:33:27 +08:00
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>
This commit is contained in:
parent
f4c1a14f96
commit
aec7c0925c
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user