mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-05-02 18:17:50 -04: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:
committed by
Srinivas Pandruvada
parent
443bf104ef
commit
ca7c5d5b75
@@ -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)",
|
||||
|
||||
Reference in New Issue
Block a user