mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 02:39:48 +00:00
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:
parent
443bf104ef
commit
ca7c5d5b75
1 changed files with 2 additions and 2 deletions
|
@ -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++) {
|
for (i = 0; i < trl_max_levels; i++) {
|
||||||
if (fact_avx != 0xFF && !(fact_avx & (1 << i)))
|
if (fact_avx != 0xFF && !(fact_avx & (1 << i)))
|
||||||
continue;
|
continue;
|
||||||
if (i == 0)
|
if (i == 0 && api_version() == 1)
|
||||||
snprintf(header, sizeof(header),
|
snprintf(header, sizeof(header),
|
||||||
"high-priority-max-frequency(MHz)");
|
"high-priority-max-frequency(MHz)");
|
||||||
else
|
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++) {
|
for (j = 0; j < trl_max_levels; j++) {
|
||||||
/* No AVX level name for SSE to be consistent with previous formatting */
|
/* 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)");
|
snprintf(header, sizeof(header), "low-priority-max-frequency(MHz)");
|
||||||
else
|
else
|
||||||
snprintf(header, sizeof(header), "low-priority-max-%s-frequency(MHz)",
|
snprintf(header, sizeof(header), "low-priority-max-%s-frequency(MHz)",
|
||||||
|
|
Loading…
Reference in a new issue