Advertisement
Guest User

Untitled

a guest
Jan 18th, 2013
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. diff --git a/drivers/cpufreq/omap-cpufreq.c b/drivers/cpufreq/omap-cpufreq.c
  2. index 1f3417a..c72c11c 100644
  3. --- a/drivers/cpufreq/omap-cpufreq.c
  4. +++ b/drivers/cpufreq/omap-cpufreq.c
  5. @@ -110,6 +110,7 @@ static int omap_target(struct cpufreq_policy *policy,
  6. freq = ret;
  7.  
  8. if (mpu_reg) {
  9. + rcu_read_lock();
  10. opp = opp_find_freq_ceil(mpu_dev, &freq);
  11. if (IS_ERR(opp)) {
  12. dev_err(mpu_dev, "%s: unable to find MPU OPP for %d\n",
  13. @@ -117,6 +118,7 @@ static int omap_target(struct cpufreq_policy *policy,
  14. return -EINVAL;
  15. }
  16. volt = opp_get_voltage(opp);
  17. + rcu_read_unlock();
  18. tol = volt * OPP_TOLERANCE / 100;
  19. volt_old = regulator_get_voltage(mpu_reg);
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement