summaryrefslogtreecommitdiff
path: root/MdePkg/Library
diff options
context:
space:
mode:
authorbxing <bxing@6f19259b-4bc3-4df7-8a09-765794883524>2006-05-22 08:10:42 +0000
committerbxing <bxing@6f19259b-4bc3-4df7-8a09-765794883524>2006-05-22 08:10:42 +0000
commitb544966b2725ccbd31296626901dece19ee2df31 (patch)
treef99c5f66e78a8268d3c61411ab3cf1e82e9245bd /MdePkg/Library
parentb3ccb7ef1242447cf491c813d43a0aecad8e938a (diff)
downloadedk2-platforms-b544966b2725ccbd31296626901dece19ee2df31.tar.xz
Fxied tracker #54 & #55
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@229 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library')
-rw-r--r--MdePkg/Library/BaseTimerLibLocalApic/Ipf/IpfTimerLib.c4
1 files 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;
}