]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi_loader: efi_set_timer: reset signaled state
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 15 Sep 2017 08:06:14 +0000 (10:06 +0200)
committerAlexander Graf <agraf@suse.de>
Mon, 18 Sep 2017 21:53:57 +0000 (23:53 +0200)
We should be able to call efi_set_timer repeatedly.
So let us reset the signaled state here.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
lib/efi_loader/efi_boottime.c

index 408b4a9097d149729e0c6ce9b1ed02eeefeae061..73793cd986724dd5e5a0c0c84224b6d46025d538 100644 (file)
@@ -363,6 +363,7 @@ efi_status_t efi_set_timer(struct efi_event *event, enum efi_timer_delay type,
                }
                event->trigger_type = type;
                event->trigger_time = trigger_time;
+               event->signaled = 0;
                return EFI_SUCCESS;
        }
        return EFI_INVALID_PARAMETER;