From: bxing Date: Mon, 22 May 2006 08:10:42 +0000 (+0000) Subject: Fxied tracker #54 & #55 X-Git-Tag: edk2-stable201903~25457 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=b544966b2725ccbd31296626901dece19ee2df31;hp=b3ccb7ef1242447cf491c813d43a0aecad8e938a Fxied tracker #54 & #55 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@229 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/MdePkg/Library/BaseTimerLibLocalApic/Ipf/IpfTimerLib.c b/MdePkg/Library/BaseTimerLibLocalApic/Ipf/IpfTimerLib.c index 652cc7e6e4..4214b6226e 100644 --- a/MdePkg/Library/BaseTimerLibLocalApic/Ipf/IpfTimerLib.c +++ b/MdePkg/Library/BaseTimerLibLocalApic/Ipf/IpfTimerLib.c @@ -59,7 +59,7 @@ MicroSecondDelay ( Ticks = GetPerformanceCounter (); Delay = GetPerformanceCounterProperties (NULL, NULL) * MicroSeconds / 1000000; - while (Ticks + Delay < GetPerformanceCounter ()); + while (Ticks + Delay >= GetPerformanceCounter ()); return (UINTN)Delay; } @@ -84,7 +84,7 @@ NanoSecondDelay ( Ticks = GetPerformanceCounter (); Delay = GetPerformanceCounterProperties (NULL, NULL) * NanoSeconds / 1000000000; - while (Ticks + Delay < GetPerformanceCounter ()); + while (Ticks + Delay >= GetPerformanceCounter ()); return (UINTN)Delay; }