summaryrefslogtreecommitdiffstats
path: root/tools/power/x86
diff options
context:
space:
mode:
authorPatryk Wlazlyn <patryk.wlazlyn@linux.intel.com>2024-05-09 12:24:02 +0200
committerLen Brown <len.brown@intel.com>2024-05-16 03:50:16 +0200
commit4e7ee02300805d26d9731fd24c4de8e10a43ffea (patch)
tree43b0d300fd2f979d630104060b303bc6bd7f1baf /tools/power/x86
parenttools/power turbostat: Read Package-cstates via perf (diff)
downloadlinux-4e7ee02300805d26d9731fd24c4de8e10a43ffea.tar.xz
linux-4e7ee02300805d26d9731fd24c4de8e10a43ffea.zip
tools/power turbostat: Fix order of strings in pkg_cstate_limit_strings
Change the order so that it matches the indexes defined in: Signed-off-by: Patryk Wlazlyn <patryk.wlazlyn@linux.intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'tools/power/x86')
-rw-r--r--tools/power/x86/turbostat/turbostat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c
index a3842e927799..b45b2f494416 100644
--- a/tools/power/x86/turbostat/turbostat.c
+++ b/tools/power/x86/turbostat/turbostat.c
@@ -4013,7 +4013,7 @@ done:
}
int pkg_cstate_limit = PCLUKN;
-char *pkg_cstate_limit_strings[] = { "reserved", "unknown", "pc0", "pc1", "pc2",
+char *pkg_cstate_limit_strings[] = { "unknown", "reserved", "pc0", "pc1", "pc2",
"pc3", "pc4", "pc6", "pc6n", "pc6r", "pc7", "pc7s", "pc8", "pc9", "pc10", "unlimited"
};