linux/tools/power
Thomas Renninger f4a5d17efe tools: cpupower: fix wrong err msg not supported vs not available
idlestates in sysfs are counted from 0.

This fixes a wrong error message.
Current behavior on a machine with 4 sleep states is:

cpupower idle-set -e 4
Idlestate 4 enabled on CPU 0

-----Wrong---------------------
cpupower idle-set -e 5
Idlestate enabling not supported by kernel
-----Must and now will be -----
cpupower idle-set -e 5
Idlestate 6 not available on CPU 0
-------------------------------

cpupower idle-set -e 6
Idlestate 6 not available on CPU 0

Signed-off-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2013-11-25 23:10:50 +01:00
..
acpi ACPI tools / acpidump: must be run as root - install it into /usr/sbin 2013-02-05 23:35:32 +01:00
cpupower tools: cpupower: fix wrong err msg not supported vs not available 2013-11-25 23:10:50 +01:00
x86 tools / power turbostat: Support Silvermont 2013-11-12 23:16:02 +01:00