• T
    omap: DMTIMER: Ack pending interrupt always when stopping a timer · 856f1914
    Tero Kristo 提交于
    The kernel timer queue is being run currently from a GP timer running in a one
    shot mode, which works in a way that when it expires, it will also stop.
    Usually during this situation, the interrupt handler will ack the interrupt,
    load a new value to the timer and start it again. During suspend, the
    situation is slightly different, as we disable interrupts just before
    timekeeping is suspended, which leaves a small window where the timer can
    expire before it is stopped, and will leave the interrupt flag pending.
    This pending interrupt will prevent ARM sleep entry, thus now we ack it always
    when we are attempting to stop a timer.
    Signed-off-by: NTero Kristo <tero.kristo@nokia.com>
    Acked-by: NKevin Hilman <khilman@deeprootsystems.com>
    [tony@atomide.com: removed the ifdef to make the patch cover omap1 also]
    Signed-off-by: NTony Lindgren <tony@atomide.com>
    856f1914
dmtimer.c 22.1 KB