diff options
-rw-r--r-- | drivers/cpufreq/cpufreq.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 62bdb955ea56..247842b2ee2d 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c | |||
@@ -1193,8 +1193,9 @@ static int __cpufreq_remove_dev_prepare(struct device *dev, | |||
1193 | cpumask_clear_cpu(cpu, policy->cpus); | 1193 | cpumask_clear_cpu(cpu, policy->cpus); |
1194 | unlock_policy_rwsem_write(cpu); | 1194 | unlock_policy_rwsem_write(cpu); |
1195 | 1195 | ||
1196 | if (cpu != policy->cpu && !frozen) { | 1196 | if (cpu != policy->cpu) { |
1197 | sysfs_remove_link(&dev->kobj, "cpufreq"); | 1197 | if (!frozen) |
1198 | sysfs_remove_link(&dev->kobj, "cpufreq"); | ||
1198 | } else if (cpus > 1) { | 1199 | } else if (cpus > 1) { |
1199 | 1200 | ||
1200 | new_cpu = cpufreq_nominate_new_policy_cpu(policy, cpu, frozen); | 1201 | new_cpu = cpufreq_nominate_new_policy_cpu(policy, cpu, frozen); |