aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorDave Jones <davej@redhat.com>2011-06-12 16:35:28 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-06-23 15:24:07 -0700
commit21dfd57873ccc7e4ff42d3dbc281cafe03dfb4a4 (patch)
tree0eeb80f229bbd85a452f2ab83a7af985d3fd0e51 /drivers
parente9a60e21d7e5146e70da96edcb066802b55f9666 (diff)
downloadlinux-linaro-stable-21dfd57873ccc7e4ff42d3dbc281cafe03dfb4a4.tar.gz
CPUFREQ: Remove cpufreq_stats sysfs entries on module unload.
commit 13f067537f34456443f61c950cd6dc37d1d5f3ee upstream. cpufreq_stats leaves behind its sysfs entries, which causes a panic when something stumbled across them. (Discovered by unloading cpufreq_stats while powertop was loaded). Signed-off-by: Dave Jones <davej@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/cpufreq/cpufreq_stats.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/cpufreq/cpufreq_stats.c b/drivers/cpufreq/cpufreq_stats.c
index c31aab02f40a..6bbc164caa9e 100644
--- a/drivers/cpufreq/cpufreq_stats.c
+++ b/drivers/cpufreq/cpufreq_stats.c
@@ -387,6 +387,7 @@ static void __exit cpufreq_stats_exit(void)
unregister_hotcpu_notifier(&cpufreq_stat_cpu_notifier);
for_each_online_cpu(cpu) {
cpufreq_stats_free_table(cpu);
+ cpufreq_stats_free_sysfs(cpu);
}
}