From: Robin Gong Date: Mon, 15 Jun 2015 04:43:47 +0000 (+0800) Subject: MLK-11110: cpufreq: imx7-cpufreq: fix system resume failed X-Git-Tag: C0P2-H0.0--20200415~4737 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=7f6e18b4ac3f2b220157641cae4eba8da508d5c4;p=linux.git MLK-11110: cpufreq: imx7-cpufreq: fix system resume failed 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 (cherry picked from commit d791bf25e07023f7a936fcabe6f641ad391048b3) --- diff --git a/drivers/cpufreq/imx7-cpufreq.c b/drivers/cpufreq/imx7-cpufreq.c index 617a64f18367..e0e485bb4e7c 100644 --- a/drivers/cpufreq/imx7-cpufreq.c +++ b/drivers/cpufreq/imx7-cpufreq.c @@ -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)) {