Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 351069
b: refs/heads/master
c: c098ea7
h: refs/heads/master
i:
  351067: 0196e2f
v: v3
  • Loading branch information
Jonghwan Choi authored and Kukjin Kim committed Feb 5, 2013
1 parent 25e2826 commit 1372410
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 229b21e2b75302d6d1b931031ae7d53e1a4d0830
refs/heads/master: c098ea74b268969bde5aaf1689b61d236abf82f5
8 changes: 5 additions & 3 deletions trunk/drivers/cpufreq/exynos-cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,10 @@ static int exynos_cpufreq_scale(unsigned int target_freq)
int ret = 0;

freqs.old = policy->cur;
freqs.new = target_freq;
freqs.cpu = policy->cpu;

if (target_freq == freqs.old)
if (freqs.new == freqs.old)
goto out;

/*
Expand Down Expand Up @@ -159,6 +160,7 @@ static int exynos_target(struct cpufreq_policy *policy,
{
struct cpufreq_frequency_table *freq_table = exynos_info->freq_table;
unsigned int index;
unsigned int new_freq;
int ret = 0;

mutex_lock(&cpufreq_lock);
Expand All @@ -172,9 +174,9 @@ static int exynos_target(struct cpufreq_policy *policy,
goto out;
}

freqs.new = freq_table[index].frequency;
new_freq = freq_table[index].frequency;

ret = exynos_cpufreq_scale(freqs.new);
ret = exynos_cpufreq_scale(new_freq);

out:
mutex_unlock(&cpufreq_lock);
Expand Down

0 comments on commit 1372410

Please sign in to comment.