diff options
author | Zhang Rui <rui.zhang@intel.com> | 2022-08-20 18:58:25 +0300 |
---|---|---|
committer | Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> | 2022-09-15 21:16:06 +0300 |
commit | a05b925ace3ea977fdadb32c969c22ef51029ee7 (patch) | |
tree | f2923da4e5b37ebe6dfc050c66f810824b3cc645 /tools/power | |
parent | 3ba6a27566a53030b3013f9f841ba5889a344cb8 (diff) | |
download | linux-a05b925ace3ea977fdadb32c969c22ef51029ee7.tar.xz |
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>
Diffstat (limited to 'tools/power')
-rw-r--r-- | tools/power/x86/intel-speed-select/isst-config.c | 3 | ||||
-rw-r--r-- | tools/power/x86/intel-speed-select/isst-core.c | 3 | ||||
-rw-r--r-- | tools/power/x86/intel-speed-select/isst.h | 2 |
3 files changed, 0 insertions, 8 deletions
diff --git a/tools/power/x86/intel-speed-select/isst-config.c b/tools/power/x86/intel-speed-select/isst-config.c index f02de7e112f7..946ed38c4f59 100644 --- a/tools/power/x86/intel-speed-select/isst-config.c +++ b/tools/power/x86/intel-speed-select/isst-config.c @@ -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; diff --git a/tools/power/x86/intel-speed-select/isst-core.c b/tools/power/x86/intel-speed-select/isst-core.c index 91a6c570f669..f701b45c832c 100644 --- a/tools/power/x86/intel-speed-select/isst-core.c +++ b/tools/power/x86/intel-speed-select/isst-core.c @@ -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; diff --git a/tools/power/x86/intel-speed-select/isst.h b/tools/power/x86/intel-speed-select/isst.h index 71662f66002d..409fcc9c8033 100644 --- a/tools/power/x86/intel-speed-select/isst.h +++ b/tools/power/x86/intel-speed-select/isst.h @@ -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; |