aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-highbank/platsmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-highbank/platsmp.c')
-rw-r--r--arch/arm/mach-highbank/platsmp.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/arm/mach-highbank/platsmp.c b/arch/arm/mach-highbank/platsmp.c
index fa9560ec6e70..1129957f6c1d 100644
--- a/arch/arm/mach-highbank/platsmp.c
+++ b/arch/arm/mach-highbank/platsmp.c
@@ -42,9 +42,7 @@ static int __cpuinit highbank_boot_secondary(unsigned int cpu, struct task_struc
42 */ 42 */
43static void __init highbank_smp_init_cpus(void) 43static void __init highbank_smp_init_cpus(void)
44{ 44{
45 unsigned int i, ncores; 45 unsigned int i, ncores = 4;
46
47 ncores = scu_get_core_count(scu_base_addr);
48 46
49 /* sanity check */ 47 /* sanity check */
50 if (ncores > NR_CPUS) { 48 if (ncores > NR_CPUS) {
@@ -65,7 +63,8 @@ static void __init highbank_smp_prepare_cpus(unsigned int max_cpus)
65{ 63{
66 int i; 64 int i;
67 65
68 scu_enable(scu_base_addr); 66 if (scu_base_addr)
67 scu_enable(scu_base_addr);
69 68
70 /* 69 /*
71 * Write the address of secondary startup into the jump table 70 * Write the address of secondary startup into the jump table