Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/drivers/cpufreq/omap-cpufreq.c b/drivers/cpufreq/omap-cpufreq.c
- index 1f3417a..c72c11c 100644
- --- a/drivers/cpufreq/omap-cpufreq.c
- +++ b/drivers/cpufreq/omap-cpufreq.c
- @@ -110,6 +110,7 @@ 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)) {
- dev_err(mpu_dev, "%s: unable to find MPU OPP for %d\n",
- @@ -117,6 +118,7 @@ static int omap_target(struct cpufreq_policy *policy,
- return -EINVAL;
- }
- volt = opp_get_voltage(opp);
- + rcu_read_unlock();
- tol = volt * OPP_TOLERANCE / 100;
- volt_old = regulator_get_voltage(mpu_reg);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement