diff options
author | Joshua Primero <jprimero@nvidia.com> | 2011-12-12 15:17:07 -0800 |
---|---|---|
committer | Varun Wadekar <vwadekar@nvidia.com> | 2011-12-21 12:06:26 +0530 |
commit | 6ffd3a5a6a911da4b65c6f618a0e57fa2f4ef8e8 (patch) | |
tree | 4dab83f9f2edbf4f496acf5ecc868b4903550bdf | |
parent | 883ea48db91ee378e2604bf28c1fb22b6b9bf6ba (diff) |
arm: tegra: thermal: Lower limit during throttle
Added a lower limit while in throttling to the thermal
layer. Needed this for tsensor to work.
Change-Id: Ib4cc038b9a287a799ae19ca565798b06c26af02c
Signed-off-by: Joshua Primero <jprimero@nvidia.com>
Reviewed-on: http://git-master/r/69562
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
-rw-r--r-- | arch/arm/mach-tegra/tegra3_thermal.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/tegra3_thermal.c b/arch/arm/mach-tegra/tegra3_thermal.c index 27e09545806d..8d310ccd841c 100644 --- a/arch/arm/mach-tegra/tegra3_thermal.c +++ b/arch/arm/mach-tegra/tegra3_thermal.c @@ -212,6 +212,11 @@ void tegra_thermal_alert(void *data) lo_limit_throttle_tj = thermal->temp_throttle_low_tj; hi_limit_throttle_tj = thermal->temp_shutdown_tj; } +#else + if (temp_tj > thermal->temp_throttle_tj) { + lo_limit_throttle_tj = thermal->temp_throttle_tj; + hi_limit_throttle_tj = thermal->temp_shutdown_tj; + } #endif #ifdef CONFIG_TEGRA_EDP_LIMITS |