linux/tools/power/cpupower/utils/helpers
Shreyas B. Prabhu 404c2db635 tools: cpupower: Fix error when running cpupower monitor
get_cpu_topology() tries to get topology info from all cpus by reading
files in the topology sysfs dir. If a cpu is offlined, since it doesn't
have topology dir, this function fails and returns -1. This causes
functions relying on get_cpu_topology() to fail. For example-

$ cpupower monitor
Cannot read number of available processors

Fix this by skipping fetching topology info for offline cpus.

Signed-off-by: Shreyas B. Prabhu <shreyas@linux.vnet.ibm.com>
Reported-by: Pavaman Subramaniyam <pavsubra@linux.vnet.ibm.com>
Acked-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2015-08-29 01:38:16 +02:00
..
amd.c cpupower: Better interface for accessing AMD pci registers 2012-03-03 14:40:08 +01:00
bitmask.c
bitmask.h
cpuid.c cpupower: IvyBridge (0x3a and 0x3e models) support 2012-11-27 23:07:20 +01:00
helpers.h cpupower: Provide -c param for cpupower monitor to schedule process on all cores 2012-11-27 23:07:20 +01:00
misc.c cpupower: Do detect IDA (opportunistic processor performance) via cpuid 2011-07-29 19:37:27 +02:00
msr.c cpupower: Do detect IDA (opportunistic processor performance) via cpuid 2011-07-29 19:37:27 +02:00
pci.c cpupower: fix breakage from libpci API change 2015-04-15 21:54:26 +02:00
sysfs.c tools / cpupower: Fix no idle state information return value 2014-12-19 23:01:12 +01:00
sysfs.h cpupower: Implement disabling of cstate interface 2013-07-05 01:52:19 +02:00
topology.c tools: cpupower: Fix error when running cpupower monitor 2015-08-29 01:38:16 +02:00