ARM: tegra: smp: fix build failure with CONFIG_SMP=n
Donghan Ryu [Tue, 29 Mar 2011 16:10:14 +0000 (01:10 +0900)]
Devs can disable SMP for debugging. However, there
was a build failure when CONFIG_SMP=n. This change
fixes it with minimum change. It looks like
headsmp.s and headsmp-t2.s cannot be removed from
Makefile since there are stuff used for both
multicore/unicore cpus in it.

Bug 809076

Original-Change-Id: Idc440aa912a98f5decff4c59845af4918e504cd2
Reviewed-on: http://git-master/r/24843
Reviewed-by: Donghan Ryu <dryu@nvidia.com>
Tested-by: Donghan Ryu <dryu@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R7d80fc13cbff447403c89f4e54b986e96489da15

arch/arm/mach-tegra/headsmp.S

index 93f0370..e895756 100644 (file)
@@ -60,6 +60,7 @@ ENTRY(v7_invalidate_l1)
 ENDPROC(v7_invalidate_l1)
 
 
+#ifdef CONFIG_SMP
 ENTRY(tegra_secondary_startup)
         bl      v7_invalidate_l1
        /* Enable coresight */
@@ -67,6 +68,7 @@ ENTRY(tegra_secondary_startup)
        mcr     p14, 0, r0, c7, c12, 6
         b       secondary_startup
 ENDPROC(tegra_secondary_startup)
+#endif
 
        .align L1_CACHE_SHIFT
 ENTRY(__tegra_cpu_reset_handler_start)