mirror of
https://github.com/torvalds/linux.git
synced 2026-05-26 16:12:59 +02:00
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>
This commit is contained in:
parent
6dc93d6890
commit
3bd486e2d9
|
|
@ -540,6 +540,7 @@ static int tpmi_get_fact_info(struct isst_id *id, int level, int fact_bucket,
|
|||
int i, j;
|
||||
int ret;
|
||||
|
||||
memset(&info, 0, sizeof(info));
|
||||
info.socket_id = id->pkg;
|
||||
info.power_domain_id = id->punit;
|
||||
info.level = level;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user