mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 20:22:09 +00:00
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>
This commit is contained in:
parent
f926447133
commit
55d5639bda
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user