msm: timer: Decrease shift on timer clocksource
Subsystems (3)
PATCH 1/1 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 <[email protected]>
--- arch/arm/mach-msm/timer.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-msm/timer.c +1 -1
@@ -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 = {
Signature · 4 lines
1.7.3.1 Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.