diff options
author | Alex Frid <afrid@nvidia.com> | 2012-02-28 13:52:58 -0800 |
---|---|---|
committer | Varun Colbert <vcolbert@nvidia.com> | 2012-03-14 16:37:16 -0700 |
commit | 34a53b7d1756e2141ac4fd816b172779dec4786d (patch) | |
tree | 7c34285cf8fbfbaaf7e50fff72d18eae708453b7 /arch/arm/mach-tegra/pm.c | |
parent | 29944d7b0128700fa369f0a3ab5cd6c24896f974 (diff) |
ARM: tegra: power: Boost CPU rate before device resume
Boost CPU frequency in tegra platform resume finish phase, just
before driver resume. Boost level is specified by platform suspend
data (ignored if 0).
Bug 946301
Signed-off-by: Alex Frid <afrid@nvidia.com>
(cherry picked from commit eaedf228861e4456454ca13f0958ed97e799fc59)
Change-Id: Ica0cff28f9651e38787ec98f54563d95d876d79e
Reviewed-on: http://git-master/r/89353
Reviewed-by: Automatic_Commit_Validation_User
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.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/pm.c b/arch/arm/mach-tegra/pm.c index ffda657ecad9..45b70b895114 100644 --- a/arch/arm/mach-tegra/pm.c +++ b/arch/arm/mach-tegra/pm.c @@ -67,6 +67,7 @@ #include "sleep.h" #include "timer.h" #include "dvfs.h" +#include "cpu-tegra.h" struct suspend_context { /* @@ -949,6 +950,12 @@ static int tegra_suspend_prepare(void) static void tegra_suspend_finish(void) { + if (pdata && pdata->cpu_resume_boost) { + int ret = tegra_suspended_target(pdata->cpu_resume_boost); + pr_info("Tegra: resume CPU boost to %u KHz: %s (%d)\n", + pdata->cpu_resume_boost, ret ? "Failed" : "OK", ret); + } + if ((current_suspend_mode == TEGRA_SUSPEND_LP0) && tegra_deep_sleep) tegra_deep_sleep(0); } |