[CPUFREQ] Remove cpufreq_stats sysfs entries on module unload.
authorDave Jones <davej@redhat.com>
Sun, 12 Jun 2011 20:35:28 +0000 (16:35 -0400)
committerDave Jones <davej@redhat.com>
Sun, 12 Jun 2011 20:36:52 +0000 (16:36 -0400)
commit13f067537f34456443f61c950cd6dc37d1d5f3ee
treedf339dc7614f51f2215087aaeed630652a7d0bb9
parent89b882a25e703b72c3e84c582357e3e864d8ccca
[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>
Cc: stable@kernel.org
drivers/cpufreq/cpufreq_stats.c