ARM: 6472/1: vexpress ct-ca9x4: only set twd_base if local timers are being used
authorWill Deacon <will.deacon@arm.com>
Wed, 10 Nov 2010 14:59:11 +0000 (15:59 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 10 Nov 2010 15:11:19 +0000 (15:11 +0000)
commite56c010f0d08bbecd05074eded7805d555da29b6
treed3c12b12c6606845438ee57f521089679c28734b
parent69448c2a4d23e5883cbca21a173e3eb89f095746
ARM: 6472/1: vexpress ct-ca9x4: only set twd_base if local timers are being used

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>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-vexpress/ct-ca9x4.c