summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Gong <b38343@freescale.com>2015-06-15 12:43:47 +0800
committerRobin Gong <b38343@freescale.com>2015-06-15 12:58:33 +0800
commitd2acb4207113e53d38073812fac2b178e07ffeae (patch)
treeebeed2f9848aea3609c9ade16c56d94430d51785
parent9ec35a860b5c5439d6b4840ccfefe8f806304a0a (diff)
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 <b38343@freescale.com> (cherry picked from commit d791bf25e07023f7a936fcabe6f641ad391048b3)
-rw-r--r--drivers/cpufreq/imx7-cpufreq.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/cpufreq/imx7-cpufreq.c b/drivers/cpufreq/imx7-cpufreq.c
index 47a460d036f5..28d4cdd479f9 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)) {