Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F165633670
D16753.id49670.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
483 B
Referenced Files
None
Subscribers
None
D16753.id49670.diff
View Options
Index: head/stand/efi/libefi/delay.c
===================================================================
--- head/stand/efi/libefi/delay.c
+++ head/stand/efi/libefi/delay.c
@@ -33,15 +33,5 @@
void
delay(int usecs)
{
- static EFI_EVENT ev = 0;
- UINTN junk;
-
- if (!ev) {
- if (BS->CreateEvent(EVT_TIMER, TPL_APPLICATION, 0, 0, &ev)
- != EFI_SUCCESS)
- return;
- }
-
- BS->SetTimer(ev, TimerRelative, usecs * 10);
- BS->WaitForEvent(1, &ev, &junk);
+ BS->Stall(usecs);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Aug 9, 9:51 PM (12 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36317984
Default Alt Text
D16753.id49670.diff (483 B)
Attached To
Mode
D16753: Simplify the EFI delay() function by calling BS->Stall().
Attached
Detach File
Event Timeline
Log In to Comment