• Daniel Lezcano's avatar
    tick: Dynamically set broadcast irq affinity · d2348fb6
    Daniel Lezcano authored
    When a cpu goes to a deep idle state where its local timer is
    shutdown, it notifies the time frame work to use the broadcast timer
    instead.  Unfortunately, the broadcast device could wake up any CPU,
    including an idle one which is not concerned by the wake up at all. So
    in the worst case an idle CPU will wake up to send an IPI to the CPU
    whose timer expired.
    
    Provide an opt-in feature CLOCK_EVT_FEAT_DYNIRQ which tells the core
    that is should set the interrupt affinity of the broadcast interrupt
    to the cpu which has the earliest expiry time. This avoids unnecessary
    spurious wakeups and IPIs.
    
    [ tglx: Adopted to cpumask rework, silenced an uninitialized warning,
      massaged changelog ]
    Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
    Cc: viresh.kumar@linaro.org
    Cc: jacob.jun.pan@linux.intel.com
    Cc: linux-arm-kernel@lists.infradead.org
    Cc: santosh.shilimkar@ti.com
    Cc: linaro-kernel@lists.linaro.org
    Cc: patches@linaro.org
    Cc: rickard.andersson@stericsson.com
    Cc: vincent.guittot@linaro.org
    Cc: linus.walleij@stericsson.com
    Cc: john.stultz@linaro.org
    Link: http://lkml.kernel.org/r/1362219013-18173-3-git-send-email-daniel.lezcano@linaro.orgSigned-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
    d2348fb6
clockchips.h 5.82 KB