MLK-11110: cpufreq: imx7-cpufreq: fix system resume failed
authorRobin Gong <b38343@freescale.com>
Mon, 15 Jun 2015 04:43:47 +0000 (12:43 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:46:56 +0000 (14:46 -0500)
System resume failed easily after commit b993956109856d3, the commit is no
problem, but it exposes the potential deadlock bug which not unlock mutex if
cpufreq not change, remove these code since the cpufreq framwork has consider
it.

Signed-off-by: Robin Gong <b38343@freescale.com>
(cherry picked from commit d791bf25e07023f7a936fcabe6f641ad391048b3)

drivers/cpufreq/imx7-cpufreq.c

index 617a64f..e0e485b 100644 (file)
@@ -41,9 +41,6 @@ static int imx7d_set_target(struct cpufreq_policy *policy, unsigned int index)
        freq_hz = new_freq * 1000;
        old_freq = clk_get_rate(arm_clk) / 1000;
 
-       if (new_freq == old_freq)
-               return 0;
-
        rcu_read_lock();
        opp = dev_pm_opp_find_freq_ceil(cpu_dev, &freq_hz);
        if (IS_ERR(opp)) {