diff options
author | Zhang Rui <rui.zhang@intel.com> | 2022-08-20 23:58:19 +0800 |
---|---|---|
committer | Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> | 2022-09-15 11:16:05 -0700 |
commit | 32d6ab45511c65e64202bc0b436301fc8ee83ad8 (patch) | |
tree | f9445d227bc376b6b3a6c304f7ceac18c2b19c5b /tools/power/x86/intel-speed-select/isst.h | |
parent | tools/power/x86/intel-speed-select: Introduce struct isst_id (diff) | |
download | linux-dev-32d6ab45511c65e64202bc0b436301fc8ee83ad8.tar.xz linux-dev-32d6ab45511c65e64202bc0b436301fc8ee83ad8.zip |
tools/power/x86/intel-speed-select: Add pkg and die in isst_id
Code uses pkg_id and die_id to refer to a specific power domain.
The pkg/die information is already settled at start time. Adding package
id and die id information into struct isst_id so that code does not need
to retrieve them at runtime.
More code cleanups can be done with the package/die info available.
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 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/power/x86/intel-speed-select/isst.h b/tools/power/x86/intel-speed-select/isst.h index fb6288087fb1..4bab3b2dce5d 100644 --- a/tools/power/x86/intel-speed-select/isst.h +++ b/tools/power/x86/intel-speed-select/isst.h @@ -82,6 +82,8 @@ /* Unified structure to specific a CPU or a Power Domain */ struct isst_id { int cpu; + int pkg; + int die; }; struct isst_clos_config { |