From: 陈亮 Date: Wed, 30 Apr 2014 03:09:27 +0000 (-0700) Subject: rk3288: release temp limit in time when temp fall down X-Git-Tag: firefly_0821_release~5400 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0cfeec32da0ef1dd00148e51dc327645e8a455e9;p=firefly-linux-kernel-4.4.55.git rk3288: release temp limit in time when temp fall down --- diff --git a/arch/arm/mach-rockchip/dvfs.c b/arch/arm/mach-rockchip/dvfs.c index 8ca36a6fbbbf..1b52d4782782 100644 --- a/arch/arm/mach-rockchip/dvfs.c +++ b/arch/arm/mach-rockchip/dvfs.c @@ -504,9 +504,9 @@ static void dvfs_temp_limit_work_func(struct work_struct *work) for (i=0; clk_cpu_dvfs_node->per_temp_limit_table[i].frequency != CPUFREQ_TABLE_END; i++) { if (temp > clk_cpu_dvfs_node->per_temp_limit_table[i].index) { clk_cpu_dvfs_node->temp_limit_rate = clk_cpu_dvfs_node->per_temp_limit_table[i].frequency; - dvfs_clk_set_rate(clk_cpu_dvfs_node, clk_cpu_dvfs_node->last_set_rate); } } + dvfs_clk_set_rate(clk_cpu_dvfs_node, clk_cpu_dvfs_node->last_set_rate); } else if (ROCKCHIP_PM_POLICY_NORMAL == rockchip_pm_get_policy()){ if (!clk_cpu_dvfs_node->nor_temp_limit_table) { return;