mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-09-29 17:51:26 +02:00
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>
This commit is contained in:
parent
6a853dbcc0
commit
22f23db428
@ -1947,8 +1947,14 @@ out:
|
|||||||
*/
|
*/
|
||||||
static efi_status_t EFIAPI efi_stall(unsigned long microseconds)
|
static efi_status_t EFIAPI efi_stall(unsigned long microseconds)
|
||||||
{
|
{
|
||||||
|
u64 end_tick;
|
||||||
|
|
||||||
EFI_ENTRY("%ld", microseconds);
|
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);
|
return EFI_EXIT(EFI_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user