X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=Omap35xxPkg%2FLibrary%2FOmap35xxTimerLib%2FTimerLib.c;h=16a3359dff920d3fe20cd5a11055b0c563ec3323;hp=1b1f2a9dbe227ba26042174555dfe37b99ae5614;hb=55bff42e00b9ccd8fda408cd1fd4db6442c0a266;hpb=d39eb83cc5ce2147264e2ea3566c4dbf7eb9888d diff --git a/Omap35xxPkg/Library/Omap35xxTimerLib/TimerLib.c b/Omap35xxPkg/Library/Omap35xxTimerLib/TimerLib.c index 1b1f2a9dbe..16a3359dff 100644 --- a/Omap35xxPkg/Library/Omap35xxTimerLib/TimerLib.c +++ b/Omap35xxPkg/Library/Omap35xxTimerLib/TimerLib.c @@ -55,7 +55,7 @@ NanoSecondDelay ( UINT32 ElapsedTime; UINT32 TimerCountRegister; - Delay = (NanoSeconds / PcdGet32(PcdEmbeddedFdPerformanceCounterPeriodInNanoseconds)) + 1; + Delay = (NanoSeconds / PcdGet32(PcdEmbeddedPerformanceCounterPeriodInNanoseconds)) + 1; TimerCountRegister = TimerBase(PcdGet32(PcdOmap35xxFreeTimer)) + GPTIMER_TCRR; @@ -67,7 +67,7 @@ NanoSecondDelay ( ElapsedTime = CurrentTime - StartTime; } while (ElapsedTime < Delay); - NanoSeconds = ElapsedTime * PcdGet32(PcdEmbeddedFdPerformanceCounterPeriodInNanoseconds); + NanoSeconds = ElapsedTime * PcdGet32(PcdEmbeddedPerformanceCounterPeriodInNanoseconds); return NanoSeconds; } @@ -98,5 +98,5 @@ GetPerformanceCounterProperties ( *EndValue = 0xFFFFFFFF; } - return PcdGet64(PcdEmbeddedPerformanceCounterFreqencyInHz); + return PcdGet64(PcdEmbeddedPerformanceCounterFrequencyInHz); }