Skip to content

Commit 55d5639

Browse files
spandruvadajwrdegoede
authored andcommitted
tools/power/x86/intel-speed-select: Fix display for unsupported levels
During call to "intel-speed-select turbo-freq info" some junk values are reported for unsupported levels. Initialize the structure fact_info with 0s, so that isst_fact_display_information() will skip "0" values in the frequency. Signed-off-by: Srinivas Pandruvada <[email protected]> Signed-off-by: Hans de Goede <[email protected]>
1 parent f926447 commit 55d5639

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2074,6 +2074,7 @@ static void dump_fact_config_for_cpu(struct isst_id *id, void *arg1, void *arg2,
20742074
struct isst_fact_info fact_info;
20752075
int ret;
20762076

2077+
memset(&fact_info, 0, sizeof(fact_info));
20772078
ret = isst_get_fact_info(id, tdp_level, fact_bucket, &fact_info);
20782079
if (ret) {
20792080
isst_display_error_info_message(1, "Failed to get turbo-freq info at this level", 1, tdp_level);

0 commit comments

Comments
 (0)