From: Stephen Boyd Date: Tue, 8 Nov 2011 18:34:06 +0000 (-0800) Subject: msm: timer: Fix ONESHOT mode interrupts X-Git-Tag: v3.3-rc1~136^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a850c3f6446d30b47c984d3f9e45c935385fd592;p=pandora-kernel.git msm: timer: Fix ONESHOT mode interrupts MSM timers don't support an interrupt enable/disable bit. Therefore, when the timer is free running it's possible for the count to wrap and the match value to match again even though a set_next_event() call hasn't been made since the last match. Workaround the lack of an interrupt enable bit by explicitly stopping the timer in the interrupt handler when the clockevent is in ONESHOT mode. This should prevent any possibility of the timer wrapping and matching more than once per set_next_event(). Signed-off-by: Stephen Boyd Cc: Thomas Gleixner Cc: Marc Zyngier Signed-off-by: David Brown --- Reading git-diff-tree failed