linux/tools/power/cpupower/utils/helpers
Palmer Cox 53d2000ebe cpupower tools: Fix issues with sysfs_topology_read_file
Fix a variety of issues with sysfs_topology_read_file:
* The return value of sysfs_topology_read_file function was not properly
  being checked for failure.
* The function was reading int valued sysfs variables and then returning
  their value. So, even if a function was trying to check the return value
  of this function, a caller would not be able to tell an failure code apart
  from reading a negative value. This also conflicted with the comment on the
  function which said that a return value of 0 indicated success.
* The function was parsing int valued sysfs values with strtoul instead of
  strtol.
* The function was non-static even though it was only used in the
  file it was declared in.

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
..
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: Do detect IDA (opportunistic processor performance) via cpuid 2011-07-29 19:37:27 +02:00
helpers.h cpupower: Fix broken mask values 2012-03-03 14:40:11 +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: Better interface for accessing AMD pci registers 2012-03-03 14:40:08 +01:00
sysfs.c cpupower tools: Fix minor warnings 2012-11-27 23:07:18 +01:00
sysfs.h cpupower: Better detect offlined CPUs 2011-08-15 20:03:10 +02:00
topology.c cpupower tools: Fix issues with sysfs_topology_read_file 2012-11-27 23:07:19 +01:00