ARM: tegra: fix section mismatch for tegra_resume
Peter De Schrijver [Thu, 19 Jul 2012 12:37:17 +0000 (15:37 +0300)]
tegra_resume is referenced by tegra_pm_set which is not part of the __cpuinit
section. Hence tegra_resume can't be in that section either.

Change-Id: I05888a58706a867767aaf247c5abd705415dee3d
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-on: http://git-master/r/117051
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

arch/arm/mach-tegra/headsmp.S

index f9a888e..2363cd0 100644 (file)
@@ -40,9 +40,6 @@
 
 #define RESET_DATA(x)  ((TEGRA_RESET_##x)*4)
 
-        .section ".text.head", "ax"
-       __CPUINIT
-
 #ifdef CONFIG_SMP
 /*
  *     tegra_secondary_startup
@@ -56,9 +53,9 @@ ENTRY(tegra_secondary_startup)
        bl      __invalidate_cpu_state
        b       secondary_startup
 ENDPROC(tegra_secondary_startup)
-       .previous
 #endif
 
+        .section ".text.head", "ax"
 #ifdef CONFIG_PM_SLEEP
 /*
  *     tegra_resume