Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 351049
b: refs/heads/master
c: 9e21ba8
h: refs/heads/master
i:
  351047: 8a1b0f8
v: v3
  • Loading branch information
Dirk Brandewie authored and Rafael J. Wysocki committed Feb 9, 2013
1 parent fc10dfd commit 187a536
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: 2eaa3e2df185997e92596ab14a2a67dde3876d2e
refs/heads/master: 9e21ba8bd849251c8ba22ddf39308a5227134fdc
6 changes: 5 additions & 1 deletion trunk/drivers/cpufreq/cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -1156,9 +1156,13 @@ static void cpufreq_out_of_sync(unsigned int cpu, unsigned int old_freq,
*/
unsigned int cpufreq_quick_get(unsigned int cpu)
{
struct cpufreq_policy *policy = cpufreq_cpu_get(cpu);
struct cpufreq_policy *policy;
unsigned int ret_freq = 0;

if (cpufreq_driver && cpufreq_driver->setpolicy && cpufreq_driver->get)
return cpufreq_driver->get(cpu);

policy = cpufreq_cpu_get(cpu);
if (policy) {
ret_freq = policy->cur;
cpufreq_cpu_put(policy);
Expand Down

0 comments on commit 187a536

Please sign in to comment.