提交 857d90f7 编写于 作者: J Jonghwan Choi 提交者: Kukjin Kim

cpufreq: exynos: Check old & new frequency early

If old & new freq have the same frequency, no need to call
cpufreq notifier & regulator function.
Signed-off-by: NJonghwan Choi <jhbird.choi@samsung.com>
Signed-off-by: NKukjin Kim <kgene.kim@samsung.com>
上级 184cddd1
...@@ -87,6 +87,9 @@ static int exynos_target(struct cpufreq_policy *policy, ...@@ -87,6 +87,9 @@ static int exynos_target(struct cpufreq_policy *policy,
freqs.new = freq_table[index].frequency; freqs.new = freq_table[index].frequency;
freqs.cpu = policy->cpu; freqs.cpu = policy->cpu;
if (freqs.new == freqs.old)
goto out;
/* /*
* ARM clock source will be changed APLL to MPLL temporary * ARM clock source will be changed APLL to MPLL temporary
* To support this level, need to control regulator for * To support this level, need to control regulator for
...@@ -113,7 +116,7 @@ static int exynos_target(struct cpufreq_policy *policy, ...@@ -113,7 +116,7 @@ static int exynos_target(struct cpufreq_policy *policy,
if (safe_arm_volt) if (safe_arm_volt)
regulator_set_voltage(arm_regulator, safe_arm_volt, regulator_set_voltage(arm_regulator, safe_arm_volt,
safe_arm_volt); safe_arm_volt);
if (freqs.new != freqs.old)
exynos_info->set_freq(old_index, index); exynos_info->set_freq(old_index, index);
for_each_cpu(freqs.cpu, policy->cpus) for_each_cpu(freqs.cpu, policy->cpus)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册