summaryrefslogtreecommitdiff
path: root/ArmPkg/Drivers
diff options
context:
space:
mode:
authoroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2012-07-04 20:18:41 +0000
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2012-07-04 20:18:41 +0000
commitae42bc88eecf25c449e3af7188e5fc7dc78f2b8f (patch)
treee79fb701e3cd424c6218af7f3a4656b7cdce60cb /ArmPkg/Drivers
parent0dbbacdf1842e41c6bc7675a92015d7e28840b3f (diff)
downloadedk2-platforms-ae42bc88eecf25c449e3af7188e5fc7dc78f2b8f.tar.xz
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
Diffstat (limited to 'ArmPkg/Drivers')
-rw-r--r--ArmPkg/Drivers/TimerDxe/TimerDxe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ArmPkg/Drivers/TimerDxe/TimerDxe.c b/ArmPkg/Drivers/TimerDxe/TimerDxe.c
index 90dcec4563..6f09cb247f 100644
--- a/ArmPkg/Drivers/TimerDxe/TimerDxe.c
+++ b/ArmPkg/Drivers/TimerDxe/TimerDxe.c
@@ -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);