From b544966b2725ccbd31296626901dece19ee2df31 Mon Sep 17 00:00:00 2001 From: bxing Date: Mon, 22 May 2006 08:10:42 +0000 Subject: [PATCH 1/1] Fxied tracker #54 & #55 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@229 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Library/BaseTimerLibLocalApic/Ipf/IpfTimerLib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.2