summaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/powernow-k7.c
diff options
context:
space:
mode:
authorsteven finney <Steven.Finney@palm.com>2011-05-02 11:29:17 -0700
committerDave Jones <davej@redhat.com>2011-05-04 11:50:57 -0400
commit98586ed8b8878e10691203687e89a42fa3355300 (patch)
tree728275611557268583bac0232c90b928151e3c66 /drivers/cpufreq/powernow-k7.c
parent335dc3335ff692173bc766b248f7a97f3a23b30a (diff)
downloadtalos-obmc-linux-98586ed8b8878e10691203687e89a42fa3355300.tar.gz
talos-obmc-linux-98586ed8b8878e10691203687e89a42fa3355300.zip
[CPUFREQ] Fix memory leak in cpufreq_stat
When a CPU is taken offline in an SMP system, cpufreq_remove_dev() nulls out the per-cpu policy before cpufreq_stats_free_table() can make use of it. cpufreq_stats_free_table() then skips the call to sysfs_remove_group(), leaving about 100 bytes of sysfs-related memory unclaimed each time a CPU-removal occurs. Break up cpu_stats_free_table into sysfs and table portions, and call the sysfs portion early. Signed-off-by: Steven Finney <steven.finney@palm.com> Signed-off-by: Dave Jones <davej@redhat.com> Cc: stable@kernel.org
Diffstat (limited to 'drivers/cpufreq/powernow-k7.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud