diff options
-rw-r--r-- | MdePkg/Library/BaseTimerLibLocalApic/Ipf/IpfTimerLib.c | 4 |
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;
}
|