]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPkg/Drivers/TimerDxe/TimerDxe.c
ArmPkg/TimerDxe: Read timer frequency from CPU
[mirror_edk2.git] / ArmPkg / Drivers / TimerDxe / TimerDxe.c
index 3e5d8e72be845d48edbfc503172a0e6060a2510d..2efe0fe4933aa37c3c6a85705dbcb7867fa2d6f6 100644 (file)
@@ -151,7 +151,7 @@ TimerDriverSetTimerPeriod (
     // mTimerTicks = TimerPeriod in 1ms unit x Frequency.10^-3\r
     //             = TimerPeriod.10^-4 x Frequency.10^-3\r
     //             = (TimerPeriod x Frequency) x 10^-7\r
-    TimerTicks = MultU64x32 (TimerPeriod, FixedPcdGet32 (PcdArmArchTimerFreqInHz));\r
+    TimerTicks = MultU64x32 (TimerPeriod, ArmGenericTimerGetTimerFreq ());\r
     TimerTicks = DivU64x32 (TimerTicks, 10000000U);\r
 \r
     // Raise TPL to update the mTimerTicks and mTimerPeriod to ensure these values\r