diff options
author | Daniel Fu <danifu@nvidia.com> | 2012-07-20 11:27:27 +0800 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2012-07-25 18:22:13 -0700 |
commit | 63a0f39a163bdabb2a0e3a8601dfefd44ae9ec93 (patch) | |
tree | 7b83fb2ca6316cc61d8cbf5454ce40762da19945 /arch | |
parent | 503103dabe8b55358379d4cd3ecd5acac45ebd3d (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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-tegra/tegra3_thermal.c | 4 |
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 e8b5e5df4afc..9de34a05810c 100644 --- a/arch/arm/mach-tegra/tegra3_thermal.c +++ b/arch/arm/mach-tegra/tegra3_thermal.c @@ -281,9 +281,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 } |