FreeBSD Bugzilla – Attachment 171361 Details for
Bug 210242
[PATCH] [EFI] Simplify libefi delay() implementation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to simplify delay() implementation
0001-Simplify-delay-implementation-by-calling-BS-Stall-fu.patch (text/plain), 836 bytes, created by
rebecca+freebsd@bluestop.org
on 2016-06-13 01:12:52 UTC
(
hide
)
Description:
Patch to simplify delay() implementation
Filename:
MIME Type:
Creator:
rebecca+freebsd@bluestop.org
Created:
2016-06-13 01:12:52 UTC
Size:
836 bytes
patch
obsolete
>From 24d1d57556f6c9cb462267257cfb299b759900bf Mon Sep 17 00:00:00 2001 >From: B Cran <bsdbcran@gmail.com> >Date: Sun, 12 Jun 2016 19:08:49 -0600 >Subject: [PATCH] Simplify delay() implementation by calling BS Stall function > >--- > sys/boot/efi/libefi/delay.c | 12 +----------- > 1 file changed, 1 insertion(+), 11 deletions(-) > >diff --git a/sys/boot/efi/libefi/delay.c b/sys/boot/efi/libefi/delay.c >index 723f681..9eb1230 100644 >--- a/sys/boot/efi/libefi/delay.c >+++ b/sys/boot/efi/libefi/delay.c >@@ -33,15 +33,5 @@ __FBSDID("$FreeBSD$"); > 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); > } >-- >2.7.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 210242
: 171361