• S
    msm: timer: Fix ONESHOT mode interrupts · a850c3f6
    Stephen Boyd 提交于
    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: NStephen Boyd <sboyd@codeaurora.org>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Marc Zyngier <marc.zyngier@arm.com>
    Signed-off-by: NDavid Brown <davidb@codeaurora.org>
    a850c3f6
timer.c 8.9 KB