]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ARM: msm: Stop counting before reprogramming clockevent
authorStephen Boyd <sboyd@codeaurora.org>
Fri, 15 Mar 2013 03:31:37 +0000 (20:31 -0700)
committerDavid Brown <davidb@codeaurora.org>
Fri, 22 Mar 2013 17:45:39 +0000 (10:45 -0700)
commit4080d2d11a2d572228c2b8d02406e997b87ba6a5
treed0266e93b2f13c38d9ed2e4c0da947d5920d7e50
parentf6161aa153581da4a3867a2d1a7caf4be19b6ec9
ARM: msm: Stop counting before reprogramming clockevent

If the clockevent is forcibly reprogrammed to have a different
match value we mistakenly assume the timer is not ticking and
program a new match value while the timer is running. Although we
clear the timer before programming a new match, it's better to
stop the timer before clearing it so that we're sure the proper
amount of ticks are counted. Failure to do so can lead to missed
ticks and system hangs.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: David Brown <davidb@codeaurora.org>
arch/arm/mach-msm/timer.c