summaryrefslogtreecommitdiff
path: root/arch/arm64
diff options
context:
space:
mode:
authorMegha Dey <mdey@nvidia.com>2014-05-27 16:28:28 -0700
committerRiham Haidar <rhaidar@nvidia.com>2014-06-02 18:34:56 -0700
commit233bdd3695ec0497165023ef4fda4846d6960ffe (patch)
tree57ef191c5feb114b48f78e1edb16bc290430b5fd /arch/arm64
parent5504fe91ae25302030c20a56269a2d97853ff67d (diff)
arm64 : tegra : moving tegra_suspend_dram check
BUG 1512081 Change-Id: I7dab6d53f602b4e991c4165ad82e2e31a680a543 Signed-off-by: Megha Dey <mdey@nvidia.com> Reviewed-on: http://git-master/r/413441 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com> Reviewed-by: Prajakta Gudadhe <pgudadhe@nvidia.com>
Diffstat (limited to 'arch/arm64')
-rw-r--r--arch/arm64/mach-tegra/pm.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/arm64/mach-tegra/pm.c b/arch/arm64/mach-tegra/pm.c
index 99d6e54e2feb..e089ac54095b 100644
--- a/arch/arm64/mach-tegra/pm.c
+++ b/arch/arm64/mach-tegra/pm.c
@@ -634,9 +634,6 @@ int tegra_suspend_dram(enum tegra_suspend_mode mode, unsigned int flags)
mode = TEGRA_SUSPEND_LP1;
}
- if ((mode == TEGRA_SUSPEND_LP0) || (mode == TEGRA_SUSPEND_LP1))
- tegra_suspend_check_pwr_stats();
-
/* turn off VDE partition in LP1 */
if (mode == TEGRA_SUSPEND_LP1 &&
tegra_powergate_is_powered(TEGRA_POWERGATE_VDEC)) {
@@ -739,7 +736,12 @@ static int tegra_suspend_valid(suspend_state_t state)
static int tegra_suspend_prepare_late(void)
{
+ if ((current_suspend_mode == TEGRA_SUSPEND_LP0) ||
+ (current_suspend_mode == TEGRA_SUSPEND_LP1))
+ tegra_suspend_check_pwr_stats();
+
suspend_in_progress = true;
+
return 0;
}