Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 221021
b: refs/heads/master
c: 521e954
h: refs/heads/master
i:
  221019: e01efd8
v: v3
  • Loading branch information
Marcelo Roberto Jimenez authored and Russell King committed Oct 27, 2010
1 parent a158a83 commit e87b18f
Show file tree
Hide file tree
Showing 2 changed files with 3 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: f444fce3c0aa199facc8c2be7635a4a82b84b71e
refs/heads/master: 521e9549d58ebcb53042c7aad6bc60d5c2fc975f
5 changes: 2 additions & 3 deletions trunk/arch/arm/mach-sa1100/cpu-sa1100.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,16 +184,15 @@ static int sa1100_target(struct cpufreq_policy *policy,
{
unsigned int cur = sa11x0_getspeed(0);
unsigned int new_ppcr;

struct cpufreq_freqs freqs;

new_ppcr = sa11x0_freq_to_ppcr(target_freq);
switch(relation){
case CPUFREQ_RELATION_L:
new_ppcr = sa11x0_freq_to_ppcr(target_freq);
if (sa11x0_ppcr_to_freq(new_ppcr) > policy->max)
new_ppcr--;
break;
case CPUFREQ_RELATION_H:
new_ppcr = sa11x0_freq_to_ppcr(target_freq);
if ((sa11x0_ppcr_to_freq(new_ppcr) > target_freq) &&
(sa11x0_ppcr_to_freq(new_ppcr - 1) >= policy->min))
new_ppcr--;
Expand Down

0 comments on commit e87b18f

Please sign in to comment.