Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 351052
b: refs/heads/master
c: 633d47d
h: refs/heads/master
v: v3
  • Loading branch information
Dirk Brandewie authored and Rafael J. Wysocki committed Feb 9, 2013
1 parent 230be5f commit 8f6c382
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fa69e33f7d38e658583ff910642da7ea4515ad74
refs/heads/master: 633d47d653f3a717fb68293d24ab7059c480f71b
4 changes: 4 additions & 0 deletions trunk/drivers/cpufreq/cpufreq_stats.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,10 @@ static void cpufreq_stats_free_table(unsigned int cpu)
static void cpufreq_stats_free_sysfs(unsigned int cpu)
{
struct cpufreq_policy *policy = cpufreq_cpu_get(cpu);

if (!cpufreq_frequency_get_table(cpu))
return;

if (policy && !policy_is_shared(policy)) {
pr_debug("%s: Free sysfs stat\n", __func__);
sysfs_remove_group(&policy->kobj, &stats_attr_group);
Expand Down

0 comments on commit 8f6c382

Please sign in to comment.