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:
bxing 2006-05-22 08:04:47 +00:00
parent 267f7f10ec
commit b3ccb7ef12
1 changed files with 11 additions and 11 deletions

View File

@ -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;
}
/**