diff options
Diffstat (limited to 'tools/power')
-rw-r--r-- | tools/power/cpupower/utils/cpuidle-info.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/power/cpupower/utils/cpuidle-info.c b/tools/power/cpupower/utils/cpuidle-info.c index b028267c1376..e076bebde1c4 100644 --- a/tools/power/cpupower/utils/cpuidle-info.c +++ b/tools/power/cpupower/utils/cpuidle-info.c | |||
@@ -43,9 +43,8 @@ static void cpuidle_cpu_output(unsigned int cpu, int verbose) | |||
43 | } | 43 | } |
44 | 44 | ||
45 | printf(_("Number of idle states: %d\n"), idlestates); | 45 | printf(_("Number of idle states: %d\n"), idlestates); |
46 | |||
47 | printf(_("Available idle states:")); | 46 | printf(_("Available idle states:")); |
48 | for (idlestate = 1; idlestate < idlestates; idlestate++) { | 47 | for (idlestate = 0; idlestate < idlestates; idlestate++) { |
49 | tmp = sysfs_get_idlestate_name(cpu, idlestate); | 48 | tmp = sysfs_get_idlestate_name(cpu, idlestate); |
50 | if (!tmp) | 49 | if (!tmp) |
51 | continue; | 50 | continue; |
@@ -57,7 +56,7 @@ static void cpuidle_cpu_output(unsigned int cpu, int verbose) | |||
57 | if (!verbose) | 56 | if (!verbose) |
58 | return; | 57 | return; |
59 | 58 | ||
60 | for (idlestate = 1; idlestate < idlestates; idlestate++) { | 59 | for (idlestate = 0; idlestate < idlestates; idlestate++) { |
61 | tmp = sysfs_get_idlestate_name(cpu, idlestate); | 60 | tmp = sysfs_get_idlestate_name(cpu, idlestate); |
62 | if (!tmp) | 61 | if (!tmp) |
63 | continue; | 62 | continue; |