diff options
author | steven finney <Steven.Finney@palm.com> | 2011-05-02 11:29:17 -0700 |
---|---|---|
committer | Paul Gortmaker <paul.gortmaker@windriver.com> | 2012-05-17 11:20:25 -0400 |
commit | 20ac721b10559dd888aade4d9b7da43a63e60bb4 (patch) | |
tree | 49e05a5588583b896b0d87bb790225d2a01325f4 /arch | |
parent | f8dccff375994b99f448841c75f5a180d45262c6 (diff) |
Fix memory leak in cpufreq_stat
commit 98586ed8b8878e10691203687e89a42fa3355300 upstream.
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>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions