From 34a53b7d1756e2141ac4fd816b172779dec4786d Mon Sep 17 00:00:00 2001 From: Alex Frid Date: Tue, 28 Feb 2012 13:52:58 -0800 Subject: 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 (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 Tested-by: Varun Colbert --- arch/arm/mach-tegra/cpu-tegra.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'arch/arm/mach-tegra/cpu-tegra.h') 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 */ -- cgit v1.2.3