* Remove cpufreq_stats sysfs entries on module unload.
@ 2011-06-12 20:57 Dave Jones
0 siblings, 0 replies; only message in thread
From: Dave Jones @ 2011-06-12 20:57 UTC (permalink / raw)
To: cpufreq; +Cc: Zou Nan hai
fyi, I just merged the patch below.
Dave
---
[CPUFREQ] Remove cpufreq_stats sysfs entries on module unload.
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>
diff --git a/drivers/cpufreq/cpufreq_stats.c b/drivers/cpufreq/cpufreq_stats.c
index b60a4c2..853f92d 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);
}
}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-06-12 20:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-12 20:57 Remove cpufreq_stats sysfs entries on module unload Dave Jones
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox