Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 322304
b: refs/heads/master
c: 1b86521
h: refs/heads/master
v: v3
  • Loading branch information
Rajendra Nayak authored and Kevin Hilman committed Aug 9, 2012
1 parent 4cea233 commit 4915e80
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 5b6e3eb576e8ad03264d46982afed77bdc6323a3
refs/heads/master: 1b8652142334a8c0729c5c4536a22cfc6fc49297
4 changes: 3 additions & 1 deletion trunk/drivers/cpufreq/omap-cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ static int __cpuinit omap_cpu_init(struct cpufreq_policy *policy)

policy->cur = policy->min = policy->max = omap_getspeed(policy->cpu);

if (atomic_inc_return(&freq_table_users) == 1)
if (!freq_table)
result = opp_init_cpufreq_table(mpu_dev, &freq_table);

if (result) {
Expand All @@ -227,6 +227,8 @@ static int __cpuinit omap_cpu_init(struct cpufreq_policy *policy)
goto fail_ck;
}

atomic_inc_return(&freq_table_users);

result = cpufreq_frequency_table_cpuinfo(policy, freq_table);
if (result)
goto fail_table;
Expand Down

0 comments on commit 4915e80

Please sign in to comment.