From: Jeff Ohlstein Date: Thu, 21 Oct 2010 09:25:45 +0000 (-0700) Subject: msm: timer: Decrease shift on timer clocksource X-Git-Tag: v2.6.37-rc1~27^2~3 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=6f9419619ef6de9d7781c1a312cf6099e5b44789;p=~emulex%2Finfiniband.git 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 Signed-off-by: Daniel Walker --- diff --git a/arch/arm/mach-msm/timer.c b/arch/arm/mach-msm/timer.c index 7689848ec68..950100f19d0 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 = {