aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShawn Guo <shawn.guo@linaro.org>2014-02-26 06:57:56 -0500
committerShawn Guo <shawn.guo@linaro.org>2014-03-04 21:40:50 -0500
commitfacadba6a12813d8bbc5586261d873fa5f3dd4fa (patch)
tree635788d6833b451f8c59fdcbfa94563c37f7f9af
parentc356bdb407baf23b202a6b4d2234114db6ae55bd (diff)
ARM: imx6: build headsmp.o only on CONFIG_SMP
With v7_cpu_resume() being moved out of headsmp.S, all the remaining code in the file is only needed by CONFIG_SMP build. So we can control the build of headsmp.o with only obj-$(CONFIG_SMP) now. Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
-rw-r--r--arch/arm/mach-imx/Makefile4
-rw-r--r--arch/arm/mach-imx/headsmp.S2
2 files changed, 2 insertions, 4 deletions
diff --git a/arch/arm/mach-imx/Makefile b/arch/arm/mach-imx/Makefile
index b4c19cda67e8..9c776a03bb40 100644
--- a/arch/arm/mach-imx/Makefile
+++ b/arch/arm/mach-imx/Makefile
@@ -104,9 +104,9 @@ obj-$(CONFIG_SOC_IMX6SL) += clk-imx6sl.o mach-imx6sl.o
104 104
105AFLAGS_suspend-imx6.o :=-Wa,-march=armv7-a 105AFLAGS_suspend-imx6.o :=-Wa,-march=armv7-a
106obj-$(CONFIG_SUSPEND) += suspend-imx6.o 106obj-$(CONFIG_SUSPEND) += suspend-imx6.o
107obj-$(CONFIG_SOC_IMX6Q) += pm-imx6q.o headsmp.o 107obj-$(CONFIG_SOC_IMX6Q) += pm-imx6q.o
108# i.MX6SL reuses i.MX6Q code 108# i.MX6SL reuses i.MX6Q code
109obj-$(CONFIG_SOC_IMX6SL) += pm-imx6q.o headsmp.o 109obj-$(CONFIG_SOC_IMX6SL) += pm-imx6q.o
110 110
111# i.MX5 based machines 111# i.MX5 based machines
112obj-$(CONFIG_MACH_MX51_BABBAGE) += mach-mx51_babbage.o 112obj-$(CONFIG_MACH_MX51_BABBAGE) += mach-mx51_babbage.o
diff --git a/arch/arm/mach-imx/headsmp.S b/arch/arm/mach-imx/headsmp.S
index e4b9fed8144d..6e1a56dafe35 100644
--- a/arch/arm/mach-imx/headsmp.S
+++ b/arch/arm/mach-imx/headsmp.S
@@ -15,7 +15,6 @@
15 15
16 .section ".text.head", "ax" 16 .section ".text.head", "ax"
17 17
18#ifdef CONFIG_SMP
19diag_reg_offset: 18diag_reg_offset:
20 .word g_diag_reg - . 19 .word g_diag_reg - .
21 20
@@ -32,4 +31,3 @@ ENTRY(v7_secondary_startup)
32 set_diag_reg 31 set_diag_reg
33 b secondary_startup 32 b secondary_startup
34ENDPROC(v7_secondary_startup) 33ENDPROC(v7_secondary_startup)
35#endif