* [PATCH] clocksource : nomadik-mtu : fix missing irq initialization
@ 2013-02-22 15:44 Daniel Lezcano
2013-02-22 15:58 ` [tip:timers/urgent] clocksource : Nomadik-mtu " tip-bot for Daniel Lezcano
2013-02-22 17:21 ` [PATCH] clocksource : nomadik-mtu " Linus Walleij
0 siblings, 2 replies; 4+ messages in thread
From: Daniel Lezcano @ 2013-02-22 15:44 UTC (permalink / raw)
To: john.stultz, tglx; +Cc: linux-kernel, linaro-kernel, patches, linus.walleij
This patch fix the clock device irq field which is not initialized.
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
---
drivers/clocksource/nomadik-mtu.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/clocksource/nomadik-mtu.c b/drivers/clocksource/nomadik-mtu.c
index 8914c3c..7cbcaa0 100644
--- a/drivers/clocksource/nomadik-mtu.c
+++ b/drivers/clocksource/nomadik-mtu.c
@@ -226,5 +226,6 @@ void __init nmdk_timer_init(void __iomem *base, int irq)
/* Timer 1 is used for events, register irq and clockevents */
setup_irq(irq, &nmdk_timer_irq);
nmdk_clkevt.cpumask = cpumask_of(0);
+ nmdk_clkevt.irq = irq;
clockevents_config_and_register(&nmdk_clkevt, rate, 2, 0xffffffffU);
}
--
1.7.9.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [tip:timers/urgent] clocksource : Nomadik-mtu : fix missing irq initialization
2013-02-22 15:44 [PATCH] clocksource : nomadik-mtu : fix missing irq initialization Daniel Lezcano
@ 2013-02-22 15:58 ` tip-bot for Daniel Lezcano
2013-02-22 17:21 ` [PATCH] clocksource : nomadik-mtu " Linus Walleij
1 sibling, 0 replies; 4+ messages in thread
From: tip-bot for Daniel Lezcano @ 2013-02-22 15:58 UTC (permalink / raw)
To: linux-tip-commits; +Cc: linux-kernel, hpa, mingo, tglx, daniel.lezcano
Commit-ID: 00f4e13c4634b10f6a16b26a980b22a53dfa6bb5
Gitweb: http://git.kernel.org/tip/00f4e13c4634b10f6a16b26a980b22a53dfa6bb5
Author: Daniel Lezcano <daniel.lezcano@linaro.org>
AuthorDate: Fri, 22 Feb 2013 16:44:30 +0100
Committer: Thomas Gleixner <tglx@linutronix.de>
CommitDate: Fri, 22 Feb 2013 16:47:59 +0100
clocksource : Nomadik-mtu : fix missing irq initialization
This patch fix the clock device irq field which is not initialized.
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: linaro-kernel@lists.linaro.org
Cc: patches@linaro.org
Cc: linus.walleij@stericsson.com
Cc: john.stultz@linaro.org
Link: http://lkml.kernel.org/r/1361547870-32638-1-git-send-email-daniel.lezcano@linaro.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
drivers/clocksource/nomadik-mtu.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/clocksource/nomadik-mtu.c b/drivers/clocksource/nomadik-mtu.c
index 8914c3c..7cbcaa0 100644
--- a/drivers/clocksource/nomadik-mtu.c
+++ b/drivers/clocksource/nomadik-mtu.c
@@ -226,5 +226,6 @@ void __init nmdk_timer_init(void __iomem *base, int irq)
/* Timer 1 is used for events, register irq and clockevents */
setup_irq(irq, &nmdk_timer_irq);
nmdk_clkevt.cpumask = cpumask_of(0);
+ nmdk_clkevt.irq = irq;
clockevents_config_and_register(&nmdk_clkevt, rate, 2, 0xffffffffU);
}
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] clocksource : nomadik-mtu : fix missing irq initialization
2013-02-22 15:44 [PATCH] clocksource : nomadik-mtu : fix missing irq initialization Daniel Lezcano
2013-02-22 15:58 ` [tip:timers/urgent] clocksource : Nomadik-mtu " tip-bot for Daniel Lezcano
@ 2013-02-22 17:21 ` Linus Walleij
2013-02-23 6:18 ` Daniel Lezcano
1 sibling, 1 reply; 4+ messages in thread
From: Linus Walleij @ 2013-02-22 17:21 UTC (permalink / raw)
To: Daniel Lezcano
Cc: john.stultz, tglx, linus.walleij, linaro-kernel, linux-kernel,
patches
On Fri, Feb 22, 2013 at 4:44 PM, Daniel Lezcano
<daniel.lezcano@linaro.org> wrote:
> This patch fix the clock device irq field which is not initialized.
>
> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Makes perfect sense:
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Sorry that I might have missed some background here or just be
out-of-track with things, how did this driver work for years without
the irq assigned? Or was this field recently introduced?
Yours,
linus Walleij
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] clocksource : nomadik-mtu : fix missing irq initialization
2013-02-22 17:21 ` [PATCH] clocksource : nomadik-mtu " Linus Walleij
@ 2013-02-23 6:18 ` Daniel Lezcano
0 siblings, 0 replies; 4+ messages in thread
From: Daniel Lezcano @ 2013-02-23 6:18 UTC (permalink / raw)
To: Linus Walleij
Cc: john.stultz, tglx, linus.walleij, linaro-kernel, linux-kernel,
patches
On 02/22/2013 06:21 PM, Linus Walleij wrote:
> On Fri, Feb 22, 2013 at 4:44 PM, Daniel Lezcano
> <daniel.lezcano@linaro.org> wrote:
>
>> This patch fix the clock device irq field which is not initialized.
>>
>> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
>
> Makes perfect sense:
> Acked-by: Linus Walleij <linus.walleij@linaro.org>
>
> Sorry that I might have missed some background here or just be
> out-of-track with things, how did this driver work for years without
> the irq assigned? Or was this field recently introduced?
The irq is assigned through:
setup_irq(irq, &nmdk_timer_irq);
two lines above but the clockevent's irq field was not set.
I did not investigate a lot, but at the first glance it worked because
the code path used by the default kernel configuration (CONFIG_NO_HZ)
does not use this field.
But when using the dynamic irq affinity [1], I noticed it was set to 0.
[1] http://www.spinics.net/lists/arm-kernel/msg226371.html
Thanks
-- Daniel
--
<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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-02-23 6:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-22 15:44 [PATCH] clocksource : nomadik-mtu : fix missing irq initialization Daniel Lezcano
2013-02-22 15:58 ` [tip:timers/urgent] clocksource : Nomadik-mtu " tip-bot for Daniel Lezcano
2013-02-22 17:21 ` [PATCH] clocksource : nomadik-mtu " Linus Walleij
2013-02-23 6:18 ` Daniel Lezcano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).