diff options
author | Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> | 2024-03-08 16:12:33 -0800 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2024-04-29 13:31:50 +0200 |
commit | 55d5639bda6563fdfbdf0606c3c23cf5fceacd61 (patch) | |
tree | 04babcc0ed132d5dbbc408bcc737151f8f260afe /tools/power | |
parent | f9264471337e1db69ffc97525bff605b8c7c442f (diff) |
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 <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'tools/power')
-rw-r--r-- | tools/power/x86/intel-speed-select/isst-config.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/power/x86/intel-speed-select/isst-config.c b/tools/power/x86/intel-speed-select/isst-config.c index 54c50124303e..d7809b7c12d9 100644 --- a/tools/power/x86/intel-speed-select/isst-config.c +++ b/tools/power/x86/intel-speed-select/isst-config.c @@ -2074,6 +2074,7 @@ static void dump_fact_config_for_cpu(struct isst_id *id, void *arg1, void *arg2, struct isst_fact_info fact_info; int ret; + memset(&fact_info, 0, sizeof(fact_info)); ret = isst_get_fact_info(id, tdp_level, fact_bucket, &fact_info); if (ret) { isst_display_error_info_message(1, "Failed to get turbo-freq info at this level", 1, tdp_level); |