summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/pm.c
diff options
context:
space:
mode:
authorKrishna Reddy <vdumpa@nvidia.com>2011-12-01 15:32:36 -0800
committerVarun Wadekar <vwadekar@nvidia.com>2011-12-08 17:54:34 +0530
commit1212eb85a3328ab9b702ffc77b5704634587ab6c (patch)
tree9c4c1b9455b1b090010446fa44e405f65b5aace1 /arch/arm/mach-tegra/pm.c
parenta313eda68445caa15533156a83a35d7999cc9801 (diff)
arm: tegra: Set G-CPU L2 cache latency to 0x442/552.
also restore the L2 cache latency values after exit from LP2. Bug 909628 Change-Id: Ia113d3511255f77ba5f5bfbfafebe43ba247818f Signed-off-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-on: http://git-master/r/67767 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/pm.c')
-rw-r--r--arch/arm/mach-tegra/pm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/pm.c b/arch/arm/mach-tegra/pm.c
index 82a7148cb7fd..8028c7814ddc 100644
--- a/arch/arm/mach-tegra/pm.c
+++ b/arch/arm/mach-tegra/pm.c
@@ -568,6 +568,7 @@ unsigned int tegra_idle_lp2_last(unsigned int sleep_time, unsigned int flags)
tegra_sleep_cpu(PLAT_PHYS_OFFSET - PAGE_OFFSET);
#ifdef CONFIG_CACHE_L2X0
+ tegra_init_cache(false);
l2x0_enable();
#endif
tegra_cluster_switch_time(flags, tegra_cluster_switch_time_id_switch);
@@ -811,7 +812,7 @@ int tegra_suspend_dram(enum tegra_suspend_mode mode, unsigned int flags)
else
tegra_sleep_core(PLAT_PHYS_OFFSET - PAGE_OFFSET);
- tegra_init_cache();
+ tegra_init_cache(true);
if (mode == TEGRA_SUSPEND_LP0) {
tegra_cpu_reset_handler_restore();