diff options
Diffstat (limited to 'drivers/cpufreq/cpufreq_stats.c')
-rw-r--r-- | drivers/cpufreq/cpufreq_stats.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpufreq/cpufreq_stats.c b/drivers/cpufreq/cpufreq_stats.c index beef6b54382b..572124c6e36b 100644 --- a/drivers/cpufreq/cpufreq_stats.c +++ b/drivers/cpufreq/cpufreq_stats.c | |||
@@ -185,7 +185,7 @@ static void cpufreq_stats_free_table(unsigned int cpu) | |||
185 | static void cpufreq_stats_free_sysfs(unsigned int cpu) | 185 | static void cpufreq_stats_free_sysfs(unsigned int cpu) |
186 | { | 186 | { |
187 | struct cpufreq_policy *policy = cpufreq_cpu_get(cpu); | 187 | struct cpufreq_policy *policy = cpufreq_cpu_get(cpu); |
188 | if (policy && (cpumask_weight(policy->cpus) == 1)) { | 188 | if (policy && !policy_is_shared(policy)) { |
189 | pr_debug("%s: Free sysfs stat\n", __func__); | 189 | pr_debug("%s: Free sysfs stat\n", __func__); |
190 | sysfs_remove_group(&policy->kobj, &stats_attr_group); | 190 | sysfs_remove_group(&policy->kobj, &stats_attr_group); |
191 | } | 191 | } |