diff options
author | Zhang Rui <rui.zhang@intel.com> | 2022-08-20 23:58:22 +0800 |
---|---|---|
committer | Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> | 2022-09-15 11:16:05 -0700 |
commit | 00bb07db5a42c91f4a74e836c6ae70fff20f7f8a (patch) | |
tree | f21af6d3a896afc6cf62c7354fb359cdaa46098b /tools/power/x86/intel-speed-select/isst.h | |
parent | tools/power/x86/intel-speed-select: Cleanup get_physical_id usage (diff) | |
download | linux-dev-00bb07db5a42c91f4a74e836c6ae70fff20f7f8a.tar.xz linux-dev-00bb07db5a42c91f4a74e836c6ae70fff20f7f8a.zip |
tools/power/x86/intel-speed-select: Introduce is_cpu_in_power_domain helper
struct isst_id contains cpu, package and die info, and it can represent
a specific SST power domain.
Introduce is_cpu_in_power_domain() helper to identify if a cpu is in a
specified power_domain.
And cleanup the code to use the new helper.
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Diffstat (limited to '')
-rw-r--r-- | tools/power/x86/intel-speed-select/isst.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/power/x86/intel-speed-select/isst.h b/tools/power/x86/intel-speed-select/isst.h index cb53b5bd3013..3ff743d14d7b 100644 --- a/tools/power/x86/intel-speed-select/isst.h +++ b/tools/power/x86/intel-speed-select/isst.h @@ -178,6 +178,7 @@ struct isst_pkg_ctdp { struct isst_pkg_ctdp_level_info ctdp_level[ISST_MAX_TDP_LEVELS]; }; +extern int is_cpu_in_power_domain(int cpu, struct isst_id *id); extern int get_topo_max_cpus(void); extern int get_cpu_count(struct isst_id *id); extern int get_max_punit_core_id(struct isst_id *id); |