summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorDonghan Ryu <dryu@nvidia.com>2011-03-30 01:10:14 +0900
committerVarun Colbert <vcolbert@nvidia.com>2011-04-01 19:25:22 -0700
commit9ad116ef0413ec32eb75af546c3cdcb7fc15d7a8 (patch)
tree0264fc594c0a6e75857050c50d5ed52d0a176423 /arch
parent24cfb0288a82d27ff77d89579e1c0e43dcd8a46f (diff)
ARM: tegra: smp: fix build failure with CONFIG_SMP=n
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 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>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-tegra/headsmp.S2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/headsmp.S b/arch/arm/mach-tegra/headsmp.S
index 25f78071666e..0421a5f6e087 100644
--- a/arch/arm/mach-tegra/headsmp.S
+++ b/arch/arm/mach-tegra/headsmp.S
@@ -46,6 +46,7 @@
* Initial secondary processor boot vector; jumps to kernel's
* secondary_startup routine
*/
+#ifdef CONFIG_SMP
ENTRY(tegra_secondary_startup)
msr cpsr_fsxc, #0xd3
bl __invalidate_cpu_state
@@ -54,6 +55,7 @@ ENTRY(tegra_secondary_startup)
poke_ev r0, r1
b secondary_startup
ENDPROC(tegra_secondary_startup)
+#endif
/*
* __enable_coresite_access