From 63a0f39a163bdabb2a0e3a8601dfefd44ae9ec93 Mon Sep 17 00:00:00 2001 From: Daniel Fu Date: Fri, 20 Jul 2012 11:27:27 +0800 Subject: 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 Reviewed-on: http://git-master/r/117250 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Joshua Primero Tested-by: Joshua Primero GVS: Gerrit_Virtual_Submit Reviewed-by: Sachin Nikam --- arch/arm/mach-tegra/tegra3_thermal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'arch/arm/mach-tegra/tegra3_thermal.c') 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 } -- cgit v1.2.3