diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2019-06-02 22:12:17 +0300 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2019-06-04 23:09:26 +0300 |
commit | 22f23db428b8ee14ff04a9128431e719ef2a387c (patch) | |
tree | c40a5f70fb313749756d5bf782a7e572c7975d45 /lib | |
parent | 6a853dbcc02ba26d8b85d26be9763464c6bfe63e (diff) | |
download | u-boot-22f23db428b8ee14ff04a9128431e719ef2a387c.tar.xz |
efi_loader: check timer events in Stall()
During a call to Stall() we should periodically check for timer events.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/efi_loader/efi_boottime.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c index 027bd6d4d3..fed8d47ade 100644 --- a/lib/efi_loader/efi_boottime.c +++ b/lib/efi_loader/efi_boottime.c @@ -1947,8 +1947,14 @@ out: */ static efi_status_t EFIAPI efi_stall(unsigned long microseconds) { + u64 end_tick; + EFI_ENTRY("%ld", microseconds); - udelay(microseconds); + + end_tick = get_ticks() + usec_to_tick(microseconds); + while (get_ticks() < end_tick) + efi_timer_check(); + return EFI_EXIT(EFI_SUCCESS); } |