summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-msm/timer.c
diff options
context:
space:
mode:
authorJeff Ohlstein <johlstei@codeaurora.org>2010-10-21 11:25:45 +0200
committerDaniel Walker <dwalker@codeaurora.org>2010-10-27 23:24:02 +0200
commit6f9419619ef6de9d7781c1a312cf6099e5b44789 (patch)
treee556ace80d7b15bc33a47e55cc1f0f7405cc04da /arch/arm/mach-msm/timer.c
parentarm: mach-msm: fix error handling in msm_iommu_probe() (diff)
downloadlinux-6f9419619ef6de9d7781c1a312cf6099e5b44789.tar.xz
linux-6f9419619ef6de9d7781c1a312cf6099e5b44789.zip
msm: timer: Decrease shift on timer clocksource
The shift of 24 causes the shift and multiply operation to sometimes overflow, resulting in incorrect timer values and poor performance. Signed-off-by: Jeff Ohlstein <johlstei@codeaurora.org> Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
Diffstat (limited to 'arch/arm/mach-msm/timer.c')
-rw-r--r--arch/arm/mach-msm/timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-msm/timer.c b/arch/arm/mach-msm/timer.c
index 7689848ec680..950100f19d07 100644
--- a/arch/arm/mach-msm/timer.c
+++ b/arch/arm/mach-msm/timer.c
@@ -137,7 +137,7 @@ static struct msm_clock msm_clocks[] = {
.rating = 200,
.read = msm_gpt_read,
.mask = CLOCKSOURCE_MASK(32),
- .shift = 24,
+ .shift = 17,
.flags = CLOCK_SOURCE_IS_CONTINUOUS,
},
.irq = {