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>
This commit is contained in:
Zhang Rui 2022-08-18 01:51:15 +08:00 committed by Srinivas Pandruvada
parent 443bf104ef
commit ca7c5d5b75
1 changed files with 2 additions and 2 deletions

View File

@ -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)",