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)
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)) {