summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorZhang Rui <rui.zhang@intel.com>2022-08-17 20:51:15 +0300
committerSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>2023-03-22 23:36:54 +0300
commitca7c5d5b75fdac884d2ad6acd7cb28e3f1dfee9c (patch)
treeac82b406fcefff7554826754aa58ad7ae57a5e57 /tools
parent443bf104ef10cfc0d22698613f8ba178427d4538 (diff)
downloadlinux-ca7c5d5b75fdac884d2ad6acd7cb28e3f1dfee9c.tar.xz
tools/power/x86/intel-speed-select: Show level 0 name for new api_version
level 0 name is not shown in some case for backward compatibility reason. No need to keep this quirk for new api_version. Signed-off-by: Zhang Rui <rui.zhang@intel.com> Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/power/x86/intel-speed-select/isst-display.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/power/x86/intel-speed-select/isst-display.c b/tools/power/x86/intel-speed-select/isst-display.c
index 1bfa8e4b39b2..4ad5df30ee83 100644
--- a/tools/power/x86/intel-speed-select/isst-display.c
+++ b/tools/power/x86/intel-speed-select/isst-display.c
@@ -284,7 +284,7 @@ static void _isst_fact_display_information(struct isst_id *id, FILE *outf, int l
for (i = 0; i < trl_max_levels; i++) {
if (fact_avx != 0xFF && !(fact_avx & (1 << i)))
continue;
- if (i == 0)
+ if (i == 0 && api_version() == 1)
snprintf(header, sizeof(header),
"high-priority-max-frequency(MHz)");
else
@@ -301,7 +301,7 @@ static void _isst_fact_display_information(struct isst_id *id, FILE *outf, int l
for (j = 0; j < trl_max_levels; j++) {
/* No AVX level name for SSE to be consistent with previous formatting */
- if (j == 0)
+ if (j == 0 && api_version() == 1)
snprintf(header, sizeof(header), "low-priority-max-frequency(MHz)");
else
snprintf(header, sizeof(header), "low-priority-max-%s-frequency(MHz)",