]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 23 Jun 2011 22:05:40 +0000 (15:05 -0700)
commit89ae106c9a9c2747e11ae1bacd7f5a65207a9296
tree9dd50d133262771bbfb9e4fa71b2a9835753b7a0
parent28223659e8b6af5d7303849f64cc3e7a4003bcbc
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>
drivers/cpufreq/cpufreq_stats.c