mirror of https://github.com/acidanthera/audk.git
ArmPkg/TimerDxe: Fixed incorrect TimerTicks calculation
Signed-off-by: Olivier Martin <olivier.martin@arm.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13498 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
0dbbacdf18
commit
ae42bc88ee
|
@ -144,7 +144,7 @@ TimerDriverSetTimerPeriod (
|
|||
// Convert TimerPeriod to micro sec units
|
||||
TimerTicks = DivU64x32 (TimerPeriod, 10);
|
||||
|
||||
TimerTicks = MultU64x32 (TimerPeriod, (PcdGet32(PcdArmArchTimerFreqInHz)/1000000));
|
||||
TimerTicks = MultU64x32 (TimerTicks, (PcdGet32(PcdArmArchTimerFreqInHz)/1000000));
|
||||
|
||||
ArmArchTimerSetTimerVal((UINTN)TimerTicks);
|
||||
|
||||
|
|
Loading…
Reference in New Issue