]> git.ipfire.org Git - thirdparty/linux.git/commit
tools/power cpupower: Show C0 in idle-info dump
authorKaushlendra Kumar <kaushlendra.kumar@intel.com>
Tue, 2 Dec 2025 06:54:03 +0000 (12:24 +0530)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 15 Dec 2025 19:33:29 +0000 (12:33 -0700)
commitff72619e11348ab189e232c59515dd5c33780d7c
treeab3015f243158549a5320ba72c66a34bb3a4780d
parentf9bd3762cf1bd0c2465f2e6121b340883471d1bf
tools/power cpupower: Show C0 in idle-info dump

`cpupower idle-info -o` skipped C0 because the loop began at 1:

  before:
    states:
      C1 ... latency[002] residency[00002]
      C2 ... latency[010] residency[00020]
      C3 ... latency[133] residency[00600]

  after:
    states:
      C0 ... latency[000] residency[00000]
      C1 ... latency[002] residency[00002]
      C2 ... latency[010] residency[00020]
      C3 ... latency[133] residency[00600]

Start iterating at index 0 so the idle report mirrors sysfs and
includes C0 stats.

Link: https://lore.kernel.org/r/20251202065403.1492807-1-kaushlendra.kumar@intel.com
Signed-off-by: Kaushlendra Kumar <kaushlendra.kumar@intel.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/power/cpupower/utils/cpuidle-info.c