* [PATCH] ARM: vexpress ct-ca9x4: only set twd_base if local timers are being used
@ 2010-11-04 17:30 Will Deacon
2011-03-01 17:23 ` Sergei Shtylyov
0 siblings, 1 reply; 4+ messages in thread
From: Will Deacon @ 2010-11-04 17:30 UTC (permalink / raw)
To: linux-arm-kernel
In commit bde28b84, I made the assumption that CONFIG_SMP is always set
for the quad-core ct-ca9x4 platform. As it turns out, people who aren't
using the SMP goodness are confronted with a build failure.
This patch fixes this issue by ensure that twd_base is only set if
local timers are being used (and therefore SMP support is configured).
Reported-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
---
arch/arm/mach-vexpress/ct-ca9x4.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-vexpress/ct-ca9x4.c b/arch/arm/mach-vexpress/ct-ca9x4.c
index c2e405a..fd25ccd 100644
--- a/arch/arm/mach-vexpress/ct-ca9x4.c
+++ b/arch/arm/mach-vexpress/ct-ca9x4.c
@@ -54,7 +54,9 @@ static struct map_desc ct_ca9x4_io_desc[] __initdata = {
static void __init ct_ca9x4_map_io(void)
{
+#ifdef CONFIG_LOCAL_TIMERS
twd_base = MMIO_P2V(A9_MPCORE_TWD);
+#endif
v2m_map_io(ct_ca9x4_io_desc, ARRAY_SIZE(ct_ca9x4_io_desc));
}
--
1.7.0.4
^ permalink raw reply related [flat|nested] 4+ messages in thread* [PATCH] ARM: vexpress ct-ca9x4: only set twd_base if local timers are being used
2010-11-04 17:30 [PATCH] ARM: vexpress ct-ca9x4: only set twd_base if local timers are being used Will Deacon
@ 2011-03-01 17:23 ` Sergei Shtylyov
2011-03-01 17:31 ` Will Deacon
0 siblings, 1 reply; 4+ messages in thread
From: Sergei Shtylyov @ 2011-03-01 17:23 UTC (permalink / raw)
To: linux-arm-kernel
Hello.
Will Deacon wrote:
> In commit bde28b84, I made the assumption that CONFIG_SMP is always set
Linus asks to also specify the commit summary in parens.
> for the quad-core ct-ca9x4 platform. As it turns out, people who aren't
> using the SMP goodness are confronted with a build failure.
> This patch fixes this issue by ensure that twd_base is only set if
> local timers are being used (and therefore SMP support is configured).
> Reported-by: Nicolas Pitre <nicolas.pitre@linaro.org>
> Signed-off-by: Will Deacon <will.deacon@arm.com>
WBR, Sergei
^ permalink raw reply [flat|nested] 4+ messages in thread* [PATCH] ARM: vexpress ct-ca9x4: only set twd_base if local timers are being used
2011-03-01 17:23 ` Sergei Shtylyov
@ 2011-03-01 17:31 ` Will Deacon
2011-03-01 17:57 ` Sergei Shtylyov
0 siblings, 1 reply; 4+ messages in thread
From: Will Deacon @ 2011-03-01 17:31 UTC (permalink / raw)
To: linux-arm-kernel
> Will Deacon wrote:
>
> > In commit bde28b84, I made the assumption that CONFIG_SMP is always set
>
> Linus asks to also specify the commit summary in parens.
Well he merged it for v2.6.37 so I guess it's not the end of the world.
Will
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] ARM: vexpress ct-ca9x4: only set twd_base if local timers are being used
2011-03-01 17:31 ` Will Deacon
@ 2011-03-01 17:57 ` Sergei Shtylyov
0 siblings, 0 replies; 4+ messages in thread
From: Sergei Shtylyov @ 2011-03-01 17:57 UTC (permalink / raw)
To: linux-arm-kernel
Hello.
Will Deacon wrote:
>>> In commit bde28b84, I made the assumption that CONFIG_SMP is always set
>> Linus asks to also specify the commit summary in parens.
> Well he merged it for v2.6.37 so I guess it's not the end of the world.
Heh, didn't realize I was replying to such an old email. :-)
> Will
WBR, Sergei
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-03-01 17:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-04 17:30 [PATCH] ARM: vexpress ct-ca9x4: only set twd_base if local timers are being used Will Deacon
2011-03-01 17:23 ` Sergei Shtylyov
2011-03-01 17:31 ` Will Deacon
2011-03-01 17:57 ` Sergei Shtylyov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox