]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: tegra: clean up the CPUINIT section
authorJoseph Lo <josephl@nvidia.com>
Fri, 4 Jan 2013 09:32:21 +0000 (17:32 +0800)
committerStephen Warren <swarren@nvidia.com>
Mon, 28 Jan 2013 17:21:51 +0000 (10:21 -0700)
There are some redundant codes in the CPUINIT section that was caused by
some codes not be organized well in "headsmp.S". Currently all the codes
in "headsmp.S" were put into CPUINIT section. But actually it doesn't
need to be loacted in CPUINIT section. There is no fuction access them
in CPUINIT section and we will relocate them to IRAM.

These codes also caused some unnecessary functions that access these
codes been put into CPUINIT section too. This patch clean it up and put
them into normal text section.

Signed-off-by: Joseph Lo <josephl@nvidia.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
arch/arm/mach-tegra/cpuidle-tegra30.c
arch/arm/mach-tegra/headsmp.S
arch/arm/mach-tegra/pm.c

index 5e8cbf5b799fe233a0a6f1da9a7d5f17b018a207..82530bd9b8c223fdd0c15090a081513fe2bb2616 100644 (file)
@@ -121,9 +121,9 @@ static inline bool tegra30_cpu_core_power_down(struct cpuidle_device *dev,
 }
 #endif
 
-static int __cpuinit tegra30_idle_lp2(struct cpuidle_device *dev,
-                                     struct cpuidle_driver *drv,
-                                     int index)
+static int tegra30_idle_lp2(struct cpuidle_device *dev,
+                           struct cpuidle_driver *drv,
+                           int index)
 {
        u32 cpu = is_smp() ? cpu_logical_map(dev->cpu) : dev->cpu;
        bool entered_lp2 = false;
index 4a317fae68604b24ae82d984e2b917970c68e997..23f487da7a57fbca307b120dbf09107e093fb22c 100644 (file)
@@ -16,8 +16,6 @@
 #define RESET_DATA(x)  ((TEGRA_RESET_##x)*4)
 
         .section ".text.head", "ax"
-       __CPUINIT
-
 /*
  * Tegra specific entry point for secondary CPUs.
  *   The secondary kernel init calls v7_flush_dcache_all before it enables
index 1b11707eaca00d5e05923a200ae9191448a5d19b..498d70b33775b24512a1ed0ca5f11aa6f77feda2 100644 (file)
@@ -148,7 +148,7 @@ static void suspend_cpu_complex(void)
        save_cpu_arch_register();
 }
 
-void __cpuinit tegra_clear_cpu_in_lp2(int phy_cpu_id)
+void tegra_clear_cpu_in_lp2(int phy_cpu_id)
 {
        u32 *cpu_in_lp2 = tegra_cpu_lp2_mask;
 
@@ -160,7 +160,7 @@ void __cpuinit tegra_clear_cpu_in_lp2(int phy_cpu_id)
        spin_unlock(&tegra_lp2_lock);
 }
 
-bool __cpuinit tegra_set_cpu_in_lp2(int phy_cpu_id)
+bool tegra_set_cpu_in_lp2(int phy_cpu_id)
 {
        bool last_cpu = false;
        cpumask_t *cpu_lp2_mask = tegra_cpu_lp2_mask;