arm: tegra: pm: remove duplicate cpu pm calls
Mayuresh Kulkarni [Tue, 15 May 2012 08:52:18 +0000 (13:52 +0530)]
- cpu_pm_enter() & cpu_cluster_pm_enter() are called by
cpu_pm_suspend() in kernel/kernel/cpu_pm.c using syscore
notifier
- similarly, cpu_cluster_pm_exit() & cpu_pm_exit() are
are called by cpu_pm_resume()
- so no need for platform implementation to call them
explicitly

Change-Id: I188293403f4e714aee668f37584da8fb2deaf117
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-on: http://git-master/r/102530
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>

Rebase-Id: Rd082b2903001011b7d66bddef107a1ed8aad9bfe

arch/arm/mach-tegra/pm.c

index 0a8b1dd..2721ec9 100644 (file)
@@ -796,9 +796,6 @@ int tegra_suspend_dram(enum tegra_suspend_mode mode, unsigned int flags)
 
        trace_cpu_suspend(CPU_SUSPEND_START);
 
-       cpu_pm_enter();
-       cpu_cluster_pm_enter();
-
        if (mode == TEGRA_SUSPEND_LP0) {
 #ifdef CONFIG_TEGRA_CLUSTER_CONTROL
                u32 reg = readl(pmc + PMC_SCRATCH4);
@@ -853,9 +850,6 @@ int tegra_suspend_dram(enum tegra_suspend_mode mode, unsigned int flags)
                pmc_32kwritel(reg, PMC_CTRL);
        }
 
-       cpu_cluster_pm_exit();
-       cpu_pm_exit();
-
        if (pdata && pdata->board_resume)
                pdata->board_resume(mode, TEGRA_RESUME_AFTER_CPU);