diff options
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r-- | drivers/cpufreq/cpufreq.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index e027052a6604..f7b9d6fce123 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c | |||
@@ -1111,12 +1111,7 @@ unsigned int cpufreq_quick_get(unsigned int cpu) | |||
1111 | unsigned int ret_freq = 0; | 1111 | unsigned int ret_freq = 0; |
1112 | 1112 | ||
1113 | if (policy) { | 1113 | if (policy) { |
1114 | if (unlikely(lock_policy_rwsem_read(cpu))) | ||
1115 | return ret_freq; | ||
1116 | |||
1117 | ret_freq = policy->cur; | 1114 | ret_freq = policy->cur; |
1118 | |||
1119 | unlock_policy_rwsem_read(cpu); | ||
1120 | cpufreq_cpu_put(policy); | 1115 | cpufreq_cpu_put(policy); |
1121 | } | 1116 | } |
1122 | 1117 | ||