diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2013-01-31 22:17:10 +0100 | 
|---|---|---|
| committer | Thomas Gleixner <tglx@linutronix.de> | 2013-01-31 22:17:10 +0100 | 
| commit | a9037430c6c784165a940a90bcd29f886834c8e7 (patch) | |
| tree | 4b186e0a761e93a6c6712053d444b566c0d25338 /drivers/cpufreq/omap-cpufreq.c | |
| parent | 6125bc8b86d9da75ddac77e38f41afbf9f5de3e3 (diff) | |
| parent | 12ad10004645d38356b14d1fbba379c523a61916 (diff) | |
| download | olio-linux-3.10-a9037430c6c784165a940a90bcd29f886834c8e7.tar.xz olio-linux-3.10-a9037430c6c784165a940a90bcd29f886834c8e7.zip  | |
Merge branch 'timers/for-arm' into timers/core
Diffstat (limited to 'drivers/cpufreq/omap-cpufreq.c')
| -rw-r--r-- | drivers/cpufreq/omap-cpufreq.c | 3 | 
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/cpufreq/omap-cpufreq.c b/drivers/cpufreq/omap-cpufreq.c index 1f3417a8322..97102b05843 100644 --- a/drivers/cpufreq/omap-cpufreq.c +++ b/drivers/cpufreq/omap-cpufreq.c @@ -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);  	}  |