mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
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 <rui.zhang@intel.com> Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
This commit is contained in:
parent
b1e9b87b3b
commit
c5a295caef
1 changed files with 3 additions and 0 deletions
|
@ -505,6 +505,9 @@ void isst_ctdp_display_information(struct isst_id *id, FILE *outf, int tdp_level
|
|||
}
|
||||
|
||||
for (k = 0; k < trl_max_levels; k++) {
|
||||
if (!ctdp_level->trl_ratios[k][0])
|
||||
continue;
|
||||
|
||||
snprintf(header, sizeof(header), "turbo-ratio-limits-%s", isst_get_trl_level_name(k));
|
||||
format_and_print(outf, level + 2, header, NULL);
|
||||
|
||||
|
|
Loading…
Reference in a new issue