Skip to content

Commit c5a295c

Browse files
zhang-ruispandruvada
authored andcommitted
tools/power/x86/intel-speed-select: Hide invalid TRL level
TRL levels with Zero ratio values is meaningless. Prevent these TRL levels from being displayed. Signed-off-by: Zhang Rui <[email protected]> Signed-off-by: Srinivas Pandruvada <[email protected]>
1 parent b1e9b87 commit c5a295c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,9 @@ void isst_ctdp_display_information(struct isst_id *id, FILE *outf, int tdp_level
505505
}
506506

507507
for (k = 0; k < trl_max_levels; k++) {
508+
if (!ctdp_level->trl_ratios[k][0])
509+
continue;
510+
508511
snprintf(header, sizeof(header), "turbo-ratio-limits-%s", isst_get_trl_level_name(k));
509512
format_and_print(outf, level + 2, header, NULL);
510513

0 commit comments

Comments
 (0)