]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
ARM: tegra: thermal: fix inform edp governor bug
authorDaniel Fu <danifu@nvidia.com>
Fri, 20 Jul 2012 03:27:27 +0000 (11:27 +0800)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 19:14:29 +0000 (12:14 -0700)
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>
Rebase-Id: R6b4dbc4f99c450c8c03090684573694e11cd712c

arch/arm/mach-tegra/tegra3_thermal.c

index 12577e0c69631e2ad22b001fd0f66f8e9fad093f..99e3bbab9a586094f5e6c3434915ce83ee1fd515 100644 (file)
@@ -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
 }