linux/tools/power/cpupower/utils
Palmer Cox 35a169737c cpupower tools: Fix malloc of cpu_info structure
The cpu_info member of cpupower_topology was being declared as an unnamed
structure. This member was then being malloced using the size of the
parent cpupower_topology * the number of cpus. This works
because cpu_info is smaller than cpupower_topology. However, there is
no guarantee that will always be the case. Making cpu_info its own
top level structure (named cpuid_core_info) allows for mallocing the actual
size of this structure. This also lets us get rid of a redefinition of
the structure in topology.c with slightly different field names.

Signed-off-by: Palmer Cox <p@lmercox.com>
Signed-off-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2012-11-27 23:07:19 +01:00
..
helpers cpupower tools: Fix malloc of cpu_info structure 2012-11-27 23:07:19 +01:00
idle_monitor cpupower tools: Fix minor warnings 2012-11-27 23:07:18 +01:00
builtin.h cpupower: use man(1) when calling "cpupower help subcommand" 2011-08-19 17:13:56 +02:00
cpufreq-info.c cpupower: use man(1) when calling "cpupower help subcommand" 2011-08-19 17:13:56 +02:00
cpufreq-set.c cpupower: use man(1) when calling "cpupower help subcommand" 2011-08-19 17:13:56 +02:00
cpuidle-info.c cpupower: Remove unneeded code and by that fix a memleak 2012-03-03 14:40:10 +01:00
cpupower-info.c cpupower: use man(1) when calling "cpupower help subcommand" 2011-08-19 17:13:56 +02:00
cpupower-set.c cpupower: use man(1) when calling "cpupower help subcommand" 2011-08-19 17:13:56 +02:00
cpupower.c cpupower: use man(1) when calling "cpupower help subcommand" 2011-08-19 17:13:56 +02:00
version-gen.sh cpupowerutils: use kernel version-derived version string 2011-07-29 18:35:39 +02:00