]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Remove cpufreq_stats sysfs entries on module unload.
authorDave Jones <davej@redhat.com>
Sun, 12 Jun 2011 20:35:28 +0000 (16:35 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 17 May 2012 15:20:49 +0000 (11:20 -0400)
commitd53072db239de81ccd71292cc08bdaf682814632
treeeb15f16cc7fa5c7a82c029f31befe46be1356ba3
parentd9dedaec02803e205adc5e29f07ccd9fc61295d9
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: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/cpufreq/cpufreq_stats.c