Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 216796
b: refs/heads/master
c: fca97b3
h: refs/heads/master
v: v3
  • Loading branch information
Sekhar Nori authored and Kevin Hilman committed Sep 24, 2010
1 parent 70a0cb9 commit 9ee6355
Show file tree
Hide file tree
Showing 3 changed files with 10 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: c89f1681450822c74afb3217ed4c24a177a23f43
refs/heads/master: fca97b3337edb6b12707d167460b224dd8ef6052
10 changes: 8 additions & 2 deletions trunk/arch/arm/mach-davinci/cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,21 @@ static int davinci_target(struct cpufreq_policy *policy,
cpufreq_notify_transition(&freqs, CPUFREQ_PRECHANGE);

/* if moving to higher frequency, up the voltage beforehand */
if (pdata->set_voltage && freqs.new > freqs.old)
pdata->set_voltage(idx);
if (pdata->set_voltage && freqs.new > freqs.old) {
ret = pdata->set_voltage(idx);
if (ret)
goto out;
}

ret = clk_set_rate(armclk, idx);
if (ret)
goto out;

/* if moving to lower freq, lower the voltage after lowering freq */
if (pdata->set_voltage && freqs.new < freqs.old)
pdata->set_voltage(idx);

out:
cpufreq_notify_transition(&freqs, CPUFREQ_POSTCHANGE);

return ret;
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-davinci/da850.c
Original file line number Diff line number Diff line change
Expand Up @@ -983,7 +983,7 @@ static int da850_set_pll0rate(struct clk *clk, unsigned long index)
return 0;
}
#else
int __init da850_register_cpufreq(void)
int __init da850_register_cpufreq(char *async_clk)
{
return 0;
}
Expand Down

0 comments on commit 9ee6355

Please sign in to comment.