]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/cpufreq/cpufreq.c
revert "[CPUFREQ] remove rwsem lock from CPUFREQ_GOV_STOP call (second call site)"
[karo-tx-linux.git] / drivers / cpufreq / cpufreq.c
index 67bc2ece7b4b508da7855937a01eb388cd33ab5b..295dc63256b815ca0823ad791e7ef68eb8f3f1a4 100644 (file)
@@ -1765,17 +1765,8 @@ static int __cpufreq_set_policy(struct cpufreq_policy *data,
                        dprintk("governor switch\n");
 
                        /* end old governor */
-                       if (data->governor) {
-                               /*
-                                * Need to release the rwsem around governor
-                                * stop due to lock dependency between
-                                * cancel_delayed_work_sync and the read lock
-                                * taken in the delayed work handler.
-                                */
-                               unlock_policy_rwsem_write(data->cpu);
+                       if (data->governor)
                                __cpufreq_governor(data, CPUFREQ_GOV_STOP);
-                               lock_policy_rwsem_write(data->cpu);
-                       }
 
                        /* start new governor */
                        data->governor = policy->governor;