linux/tools/power/cpupower/utils/helpers
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
..
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: Better interface for accessing AMD pci registers 2012-03-03 14:40:08 +01:00
sysfs.c tools: cpupower: fix wrong err msg not supported vs not available 2013-11-25 23:10:50 +01:00
sysfs.h cpupower: Implement disabling of cstate interface 2013-07-05 01:52:19 +02:00
topology.c cpupower tools: Fix warning and a bug with the cpu package count 2012-11-27 23:07:19 +01:00