Skip to contentSkip to conversation

clocksource/drivers/tegra: allow timer irq affinity change

PATCH In review Lucas Stach 2 participants 4 messages Oct 25, 2015 – Oct 27, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/clocksource/tegra20_timer.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/clocksource/tegra20_timer.c +2 -1
index 6ebda11..38333ab 100644
@@ -96,7 +96,8 @@ static struct clock_event_device tegra_clockevent = {
 	.name			= "timer0",
 	.rating			= 300,
 	.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_state_shutdown	= tegra_timer_shutdown,
 	.set_state_periodic	= tegra_timer_set_periodic,
Signature · 1 line
2.4.3
#1 lore raw
Quoted 5 lines · Lucas Stach

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.

Did you test this patch on a tegra2 ?

Signature · 5 lines
 <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
#2 lore raw

Am Dienstag, den 27.10.2015, 11:14 +0100 schrieb Daniel Lezcano:

Quoted 11 lines · Lucas Stach
Quoted 7 lines

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.

Did you test this patch on a tegra2 ?

Yes, I haven't spotted anything bad, but don't know if I should look out for specific oddities?

Regards,
Lucas

#3 lore raw
Quoted 6 lines · Lucas Stach

Am Dienstag, den 27.10.2015, 11:14 +0100 schrieb Daniel Lezcano:

Quoted 5 lines · Lucas Stach
Quoted 4 lines

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

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines

This reduces interrupt pressure and wakeups on CPU0 as well as vastly
reducing the number of timer broadcast IPIs.

Did you test this patch on a tegra2 ?

Yes, I haven't spotted anything bad, but don't know if I should look out for specific oddities?

I was wondering if you tested it because the changelog was the same than the similar change you did previously so I wanted to know if you assumed the behavior or if you tested it.

So, no problem.

Thanks !

-- Daniel

Signature · 5 lines
 <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog