• Stephen Boyd's avatar
    msm: timer: Fix ONESHOT mode interrupts · a850c3f6
    Stephen Boyd authored
    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: default avatarStephen Boyd <sboyd@codeaurora.org>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Marc Zyngier <marc.zyngier@arm.com>
    Signed-off-by: default avatarDavid Brown <davidb@codeaurora.org>
    a850c3f6
timer.c 8.95 KB