|
@@ -1070,11 +1070,11 @@ static int __cpufreq_remove_dev(struct sys_device *sys_dev)
|
|
spin_unlock_irqrestore(&cpufreq_driver_lock, flags);
|
|
spin_unlock_irqrestore(&cpufreq_driver_lock, flags);
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
+ unlock_policy_rwsem_write(cpu);
|
|
|
|
+
|
|
if (cpufreq_driver->target)
|
|
if (cpufreq_driver->target)
|
|
__cpufreq_governor(data, CPUFREQ_GOV_STOP);
|
|
__cpufreq_governor(data, CPUFREQ_GOV_STOP);
|
|
|
|
|
|
- unlock_policy_rwsem_write(cpu);
|
|
|
|
-
|
|
|
|
kobject_put(&data->kobj);
|
|
kobject_put(&data->kobj);
|
|
|
|
|
|
/* we need to make sure that the underlying kobj is actually
|
|
/* we need to make sure that the underlying kobj is actually
|