- // Convert TimerPeriod to micro sec units\r
- TimerTicks = DivU64x32 (TimerPeriod, 10);\r
+ // TimerTicks = 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 = DivU64x32 (TimerTicks, 10000000U);\r