• Serge Semin's avatar
    clocksource: dw_apb_timer: Affiliate of-based timer with any CPU · 65e0f876
    Serge Semin authored
    Currently any DW APB Timer device detected in OF is bound to CPU #0.
    Doing so is redundant since DW APB Timer isn't CPU-local timer, but as
    having APB interface is normally accessible from any CPU in the system. By
    artificially affiliating the DW timer to the very first CPU we may and in
    our case will make the clockevent subsystem to decline the more performant
    real CPU-local timers selection in favor of in fact non-local and
    accessible over a slow bus - DW APB Timers.
    
    Let's not affiliate the of-detected DW APB Timers to any CPU. By doing so
    the clockevent framework would prefer to select the real CPU-local timer
    instead of DW APB one. Otherwise if there is no other than DW APB device
    for clockevents tracking then it will be selected.
    Signed-off-by: default avatarSerge Semin <Sergey.Semin@baikalelectronics.ru>
    Cc: Alexey Malahov <Alexey.Malahov@baikalelectronics.ru>
    Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
    Cc: Paul Burton <paulburton@kernel.org>
    Cc: Ralf Baechle <ralf@linux-mips.org>
    Cc: Alessandro Zummo <a.zummo@towertech.it>
    Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
    Cc: Arnd Bergmann <arnd@arndb.de>
    Cc: Rob Herring <robh+dt@kernel.org>
    Cc: linux-mips@vger.kernel.org
    Cc: linux-rtc@vger.kernel.org
    Cc: devicetree@vger.kernel.org
    Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
    Link: https://lore.kernel.org/r/20200521204818.25436-6-Sergey.Semin@baikalelectronics.ru
    65e0f876
dw_apb_timer_of.c 4.19 KB