Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 349079
b: refs/heads/master
c: f44d188
h: refs/heads/master
i:
  349077: 73cb929
  349075: ee7de6a
  349071: b9ddeb1
v: v3
  • Loading branch information
Nishanth Menon authored and Rafael J. Wysocki committed Jan 22, 2013
1 parent eb37fe2 commit cb9b777
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 25216865392a6e1f3032855aee7407de1fe0b70c
refs/heads/master: f44d188acdca1a34e4439ca6a173f85086e0e655
3 changes: 3 additions & 0 deletions trunk/drivers/cpufreq/omap-cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,16 @@ static int omap_target(struct cpufreq_policy *policy,
freq = ret;

if (mpu_reg) {
rcu_read_lock();
opp = opp_find_freq_ceil(mpu_dev, &freq);
if (IS_ERR(opp)) {
rcu_read_unlock();
dev_err(mpu_dev, "%s: unable to find MPU OPP for %d\n",
__func__, freqs.new);
return -EINVAL;
}
volt = opp_get_voltage(opp);
rcu_read_unlock();
tol = volt * OPP_TOLERANCE / 100;
volt_old = regulator_get_voltage(mpu_reg);
}
Expand Down

0 comments on commit cb9b777

Please sign in to comment.