Commit ca7c5d5b authored by Zhang Rui's avatar Zhang Rui Committed by Srinivas Pandruvada

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: default avatarZhang Rui <rui.zhang@intel.com>
Signed-off-by: default avatarSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
parent 443bf104
......@@ -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)",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment