Skip to content

Commit 5ccb51b

Browse files
bbkzzdlezcano
authored andcommitted
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>
1 parent cf16f63 commit 5ccb51b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/clocksource/timer-sun4i.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,8 @@ static struct timer_of to = {
144144
.clkevt = {
145145
.name = "sun4i_tick",
146146
.rating = 350,
147-
.features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT,
147+
.features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT |
148+
CLOCK_EVT_FEAT_DYNIRQ,
148149
.set_state_shutdown = sun4i_clkevt_shutdown,
149150
.set_state_periodic = sun4i_clkevt_set_periodic,
150151
.set_state_oneshot = sun4i_clkevt_set_oneshot,

0 commit comments

Comments
 (0)