Fix memory leak in cpufreq stats.
authorTu, Xiaobing <xiaobing.tu@intel.com>
Mon, 22 Oct 2012 23:03:00 +0000 (01:03 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 20 Mar 2013 15:03:29 +0000 (15:03 +0000)
commit8885a53947b37ab206c8e3d8ca30ee06cb179ddf
tree54d36e27ad3f37c4f8934b2159e226e4900686d3
parent3125bdd601790d03f36343d9d0941c5f94244f27
Fix memory leak in cpufreq stats.

commit e37736777254ce1abc85493a5cacbefe5983b896 upstream.

When system enters sleep, non-boot CPUs will be disabled.
Cpufreq stats sysfs is created when the CPU is up, but it is not
freed when the CPU is going down. This will cause memory leak.

Signed-off-by: xiaobing tu <xiaobing.tu@intel.com>
Signed-off-by: guifang tang <guifang.tang@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/cpufreq/cpufreq_stats.c