mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 21:38:32 +08:00
tools/power/x86/intel-speed-select: Remove unused struct clos_config fields
pkg_id/die_id can be retrieved from struct isst_id, remove the redundant clos_config->pkg_id/die_id fields. Signed-off-by: Zhang Rui <rui.zhang@intel.com> Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
This commit is contained in:
parent
3ba6a27566
commit
a05b925ace
@ -2197,9 +2197,6 @@ static void set_clos_config_for_cpu(struct isst_id *id, void *arg1, void *arg2,
|
||||
struct isst_clos_config clos_config;
|
||||
int ret;
|
||||
|
||||
clos_config.pkg_id = id->pkg;
|
||||
clos_config.die_id = id->die;
|
||||
|
||||
clos_config.epp = clos_epp;
|
||||
clos_config.clos_prop_prio = clos_prop_prio;
|
||||
clos_config.clos_min = clos_min;
|
||||
|
@ -971,9 +971,6 @@ int isst_pm_get_clos(struct isst_id *id, int clos, struct isst_clos_config *clos
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
clos_config->pkg_id = id->pkg;
|
||||
clos_config->die_id = id->die;
|
||||
|
||||
clos_config->epp = resp & 0x0f;
|
||||
clos_config->clos_prop_prio = (resp >> 4) & 0x0f;
|
||||
clos_config->clos_min = (resp >> 8) & 0xff;
|
||||
|
@ -87,8 +87,6 @@ struct isst_id {
|
||||
};
|
||||
|
||||
struct isst_clos_config {
|
||||
int pkg_id;
|
||||
int die_id;
|
||||
unsigned char epp;
|
||||
unsigned char clos_prop_prio;
|
||||
unsigned char clos_min;
|
||||
|
Loading…
Reference in New Issue
Block a user