Skip to content

Commit 3bd486e

Browse files
committed
tools/power/x86/intel-speed-select: Reset isst_turbo_freq_info for invalid buckets
With SST-TF version 2 only 3 buckets are present. The information in others buckets can be junk. So initialize the info structure of type isst_turbo_freq_info, before issing ioctl to get bucket information. Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
1 parent 6dc93d6 commit 3bd486e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tools/power/x86/intel-speed-select/isst-core-tpmi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,7 @@ static int tpmi_get_fact_info(struct isst_id *id, int level, int fact_bucket,
540540
int i, j;
541541
int ret;
542542

543+
memset(&info, 0, sizeof(info));
543544
info.socket_id = id->pkg;
544545
info.power_domain_id = id->punit;
545546
info.level = level;

0 commit comments

Comments
 (0)