From: Thomas Renninger Date: Sat, 16 Nov 2013 13:39:22 +0000 (+0100) Subject: tools: cpupower: fix wrong err msg not supported vs not available X-Git-Tag: v3.13-rc2~19^2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4a5d17efec95ee74113df62943494a2197c8bae;p=pandora-kernel.git 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 Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed