Skip to content

Commit 137ba3b

Browse files
zhang-ruispandruvada
authored andcommitted
tools/power/x86/intel-speed-select: Fix clos-max display with TPMI I/F
Comparing clos_config->clos_max with 255 is broken with TPMI I/F because of different isst_get_disp_freq_multiplier() used. Checking for clos_config->clos_max * isst_get_disp_freq_multiplier() instead. Signed-off-by: Zhang Rui <[email protected]> Signed-off-by: Srinivas Pandruvada <[email protected]>
1 parent d0e12c4 commit 137ba3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/power/x86/intel-speed-select/isst-display.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ void isst_clos_display_information(struct isst_id *id, FILE *outf, int clos,
606606
format_and_print(outf, level + 2, header, value);
607607

608608
snprintf(header, sizeof(header), "clos-max");
609-
if (clos_config->clos_max == 0xff)
609+
if ((clos_config->clos_max * isst_get_disp_freq_multiplier()) == 25500)
610610
snprintf(value, sizeof(value), "Max Turbo frequency");
611611
else
612612
snprintf(value, sizeof(value), "%d MHz", clos_config->clos_max * isst_get_disp_freq_multiplier());

0 commit comments

Comments
 (0)