ARM: msm: Wait for timer clear to complete
commite25e3d1fef2c57e49aef64535341c15fe2b29b4a
authorStephen Boyd <sboyd@codeaurora.org>
Fri, 15 Mar 2013 03:31:39 +0000 (14 20:31 -0700)
committerDavid Brown <davidb@codeaurora.org>
Fri, 22 Mar 2013 17:46:16 +0000 (22 10:46 -0700)
treeb5ae984efc823a9eb256e10c98f5b339f10e0712
parenteebdb0c1e1d63532399f7cbb65ade5969d63df06
ARM: msm: Wait for timer clear to complete

Without looping on the status bit, there is no way to guarantee
that a clear of the timer has actually completed. This can cause
us to enable the timer before the count has cleared and miss a
timer interrupt. To simplify this patch, remove the timer
register setup done during timer init, since it's duplicate work
that is eventually done in the set_next_event() callback.

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