summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Fu <danifu@nvidia.com>2012-07-20 11:27:27 +0800
committerVarun Wadekar <vwadekar@nvidia.com>2012-07-30 16:25:33 +0530
commit38b48efafc5d3dfced1854e8a444547ec4c0e219 (patch)
tree2e6f3f5606d9881f5e3e22a7d5905f8112d3790f
parent32081b8edce75e93319bd8467b3c9f7021129559 (diff)
ARM: tegra: thermal: fix inform edp governor bug
Fixed bug using Tj temp to update thermal zone, It should use EDP temp to update it. bug 1007726 Change-Id: Ibcf2520a4bad7dc977add0b5c855681d2667a7c2 Signed-off-by: Daniel Fu <danifu@nvidia.com> Reviewed-on: http://git-master/r/117250 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Joshua Primero <jprimero@nvidia.com> Tested-by: Joshua Primero <jprimero@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Sachin Nikam <snikam@nvidia.com>
-rw-r--r--arch/arm/mach-tegra/tegra3_thermal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/tegra3_thermal.c b/arch/arm/mach-tegra/tegra3_thermal.c
index 12577e0c6963..99e3bbab9a58 100644
--- a/arch/arm/mach-tegra/tegra3_thermal.c
+++ b/arch/arm/mach-tegra/tegra3_thermal.c
@@ -282,9 +282,9 @@ static void tegra_thermal_alert_unlocked(void *data)
#ifdef CONFIG_TEGRA_EDP_LIMITS
/* inform edp governor */
if (edp_thermal_zone_val != temp_tj) {
- long temp_edp = (dev2tj(device, temp_tj) - therm->edp_offset) / 1000;
+ long temp_edp = (temp_tj - therm->edp_offset) / 1000;
tegra_edp_update_thermal_zone(temp_edp);
- edp_thermal_zone_val = temp_edp;
+ edp_thermal_zone_val = temp_tj;
}
#endif
}