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/cpu-tegra.h | |
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/cpu-tegra.h')
-rw-r--r-- | arch/arm/mach-tegra/cpu-tegra.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/cpu-tegra.h b/arch/arm/mach-tegra/cpu-tegra.h index a89ccd32d463..2bba460514f3 100644 --- a/arch/arm/mach-tegra/cpu-tegra.h +++ b/arch/arm/mach-tegra/cpu-tegra.h @@ -1,7 +1,7 @@ /* * arch/arm/mach-tegra/cpu-tegra.h * - * Copyright (c) 2011, NVIDIA Corporation. + * Copyright (c) 2011-2012, NVIDIA Corporation. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -76,4 +76,11 @@ static inline bool tegra_cpu_edp_favor_down(unsigned int n, int mp_overhead) { return false; } #endif +#ifdef CONFIG_CPU_FREQ +int tegra_suspended_target(unsigned int target_freq); +#else +static inline int tegra_suspended_target(unsigned int target_freq) +{ return -ENOSYS; } +#endif + #endif /* __MACH_TEGRA_CPU_TEGRA_H */ |