linux/tools/power
Prarit Bhargava 2a813f1aaa Revert "tools: cpupower: fix return checks for sysfs_get_idlestate_count()"
This reverts commit 16b7c275c0.

My previous commit 16b7c275c0 ("tools: cpupower: fix return checks for
sysfs_get_idlestate_count()") was not correct.  After looking
at the changelog for cpupower I noticed that Thomas had changed the return of
sysfs_get_idlestate_count() to an unsigned int to simplify the code.  The
problem is really that both he (in his original change) and I (in my new
change) missed the obvious that sysfs_get_idlestate_count()
can't return -ENODEV.  It should just return 0 for "no c-states".

Fixes: 16b7c275c0 (tools: cpupower: fix return checks for ...)
Signed-off-by: Prarit Bhargava <prarit@redhat.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2014-12-14 22:14:16 +01:00
..
acpi ACPICA: acpiexec: Do not put STDIN into raw mode unless it is a terminal. 2014-10-21 00:39:40 +02:00
cpupower Revert "tools: cpupower: fix return checks for sysfs_get_idlestate_count()" 2014-12-14 22:14:16 +01:00
x86 tools/power turbostat: tweak whitespace in output format 2014-08-15 17:34:44 -04:00