Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 273449
b: refs/heads/master
c: 8efd072
h: refs/heads/master
i:
  273447: 2a35427
v: v3
  • Loading branch information
Vincent Guittot authored and Dave Jones committed Oct 26, 2011
1 parent 0f4a815 commit ddc2d75
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 826e570bb24de7671be66de7a6f036c304caad1e
refs/heads/master: 8efd072b32d67436413e98e25e9a316216e88900
7 changes: 4 additions & 3 deletions trunk/drivers/cpufreq/db8500-cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ static int db8500_cpufreq_target(struct cpufreq_policy *policy,

freqs.old = policy->cur;
freqs.new = freq_table[idx].frequency;
freqs.cpu = policy->cpu;

if (freqs.old == freqs.new)
return 0;

/* pre-change notification */
cpufreq_notify_transition(&freqs, CPUFREQ_PRECHANGE);
for_each_cpu(freqs.cpu, policy->cpus)
cpufreq_notify_transition(&freqs, CPUFREQ_PRECHANGE);

/* request the PRCM unit for opp change */
if (prcmu_set_arm_opp(idx2opp[idx])) {
Expand All @@ -87,7 +87,8 @@ static int db8500_cpufreq_target(struct cpufreq_policy *policy,
}

/* post change notification */
cpufreq_notify_transition(&freqs, CPUFREQ_POSTCHANGE);
for_each_cpu(freqs.cpu, policy->cpus)
cpufreq_notify_transition(&freqs, CPUFREQ_POSTCHANGE);

return 0;
}
Expand Down

0 comments on commit ddc2d75

Please sign in to comment.