clocksource/drivers/timer-sun4i: Add CLOCK_EVT_FEAT_DYNIRQ
authorYangtao Li <frank.li@vivo.com>
Thu, 9 Feb 2023 04:02:39 +0000 (12:02 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 13 Feb 2023 12:10:17 +0000 (13:10 +0100)
commit5ccb51b06c8bfcfca99d3f68e671eead7318301d
tree1540a65ec79b25c6b7fd8c56ea23dbfcebb193b3
parentcf16f631b0bbd98df4b2ccc13346f564412eae68
clocksource/drivers/timer-sun4i: Add CLOCK_EVT_FEAT_DYNIRQ

Add CLOCK_EVT_FEAT_DYNIRQ to allow the IRQ could be runtime set affinity
to the cores that needs wake up, otherwise saying core0 has to send
IPI to wakeup core1. With CLOCK_EVT_FEAT_DYNIRQ set, when broadcast
timer could wake up the cores, IPI is not needed.

After enabling this feature, especially the scene where cpuidle is
enabled can benefit.

Signed-off-by: Yangtao Li <frank.li@vivo.com>
Link: https://lore.kernel.org/r/20230209040239.24710-1-frank.li@vivo.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/timer-sun4i.c