efi_loader: Use sysreset instead of reset command
authorMasami Hiramatsu <masami.hiramatsu@linaro.org>
Mon, 21 Mar 2022 13:37:56 +0000 (22:37 +0900)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 9 Apr 2022 19:06:31 +0000 (21:06 +0200)
commit7660cfee0fb7827535b8d7152613728ad399b9df
tree09837c1136f96914a2a2b4fb5313d289747b5120
parent39bdf115805b9fd2bbfc8ed3c0d85224042ac776
efi_loader: Use sysreset instead of reset command

Use sysreset_walk_halt() directly from reset-after-capsule-on-disk
feature to reboot (cold reset) machine instead of using reset command
interface, since this is not a command.
Note that this will make CONFIG_EFI_CAPSULE_ON_DISK depending on
the CONFIG_SYSRESET.

Signed-off-by: Masami Hiramatsu <masami.hiramatsu@linaro.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
lib/efi_loader/Kconfig
lib/efi_loader/efi_capsule.c