mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
Fixed tracker #52
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@228 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
267f7f10ec
commit
b3ccb7ef12
@ -25,18 +25,18 @@ DelayWorker (
|
||||
IN UINT64 NDelay
|
||||
)
|
||||
{
|
||||
UINTN Ticks;
|
||||
UINT64 Ticks;
|
||||
|
||||
Ticks = (UINTN)GetPerformanceCounter ();
|
||||
Ticks -= (UINTN)DivU64x32 (
|
||||
MultU64x64 (
|
||||
GetPerformanceCounterProperties (NULL, NULL),
|
||||
NDelay
|
||||
),
|
||||
1000000000u
|
||||
);
|
||||
while (Ticks >= GetPerformanceCounter ());
|
||||
return Ticks;
|
||||
Ticks = GetPerformanceCounter ();
|
||||
Ticks -= DivU64x32 (
|
||||
MultU64x64 (
|
||||
GetPerformanceCounterProperties (NULL, NULL),
|
||||
NDelay
|
||||
),
|
||||
1000000000u
|
||||
);
|
||||
while (Ticks <= GetPerformanceCounter ());
|
||||
return (UINTN)Ticks;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user