ARM: imx6: build headsmp.o only on CONFIG_SMP
authorShawn Guo <shawn.guo@linaro.org>
Wed, 26 Feb 2014 11:57:56 +0000 (19:57 +0800)
committerShawn Guo <shawn.guo@linaro.org>
Wed, 5 Mar 2014 02:40:50 +0000 (10:40 +0800)
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>
arch/arm/mach-imx/Makefile
arch/arm/mach-imx/headsmp.S

index b4c19cda67e83c7548afb8766d0fe567afa98946..9c776a03bb4018c13da4365afca607f4aa41fbfa 100644 (file)
@@ -104,9 +104,9 @@ obj-$(CONFIG_SOC_IMX6SL) += clk-imx6sl.o mach-imx6sl.o
 
 AFLAGS_suspend-imx6.o :=-Wa,-march=armv7-a
 obj-$(CONFIG_SUSPEND) += suspend-imx6.o
-obj-$(CONFIG_SOC_IMX6Q) += pm-imx6q.o headsmp.o
+obj-$(CONFIG_SOC_IMX6Q) += pm-imx6q.o
 # i.MX6SL reuses i.MX6Q code
-obj-$(CONFIG_SOC_IMX6SL) += pm-imx6q.o headsmp.o
+obj-$(CONFIG_SOC_IMX6SL) += pm-imx6q.o
 
 # i.MX5 based machines
 obj-$(CONFIG_MACH_MX51_BABBAGE) += mach-mx51_babbage.o
index e4b9fed8144d18680f8ddbeee38e68e6207549a5..6e1a56dafe35c3e5d82e9de6a34918f7667bbb8c 100644 (file)
@@ -15,7 +15,6 @@
 
        .section ".text.head", "ax"
 
-#ifdef CONFIG_SMP
 diag_reg_offset:
        .word   g_diag_reg - .
 
@@ -32,4 +31,3 @@ ENTRY(v7_secondary_startup)
        set_diag_reg
        b       secondary_startup
 ENDPROC(v7_secondary_startup)
-#endif