Commit a3a8908f authored by Lucas Stach's avatar Lucas Stach Committed by Daniel Lezcano

clocksource/drivers/tegra: Allow timer irq affinity change

Allow the timer core to change the smp affinity of the broadcast timer
irq by setting CLOCK_EVT_FEAT_DYNIRQ flag.

This reduces interrupt pressure and wakeups on CPU0 as well as vastly
reducing the number of timer broadcast IPIs.
Signed-off-by: default avatarLucas Stach <dev@lynxeye.de>
Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
parent 11faa20e
...@@ -96,7 +96,8 @@ static struct clock_event_device tegra_clockevent = { ...@@ -96,7 +96,8 @@ static struct clock_event_device tegra_clockevent = {
.name = "timer0", .name = "timer0",
.rating = 300, .rating = 300,
.features = CLOCK_EVT_FEAT_ONESHOT | .features = CLOCK_EVT_FEAT_ONESHOT |
CLOCK_EVT_FEAT_PERIODIC, CLOCK_EVT_FEAT_PERIODIC |
CLOCK_EVT_FEAT_DYNIRQ,
.set_next_event = tegra_timer_set_next_event, .set_next_event = tegra_timer_set_next_event,
.set_state_shutdown = tegra_timer_shutdown, .set_state_shutdown = tegra_timer_shutdown,
.set_state_periodic = tegra_timer_set_periodic, .set_state_periodic = tegra_timer_set_periodic,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment