diff options
author | Zhang Rui <rui.zhang@intel.com> | 2022-08-20 18:58:20 +0300 |
---|---|---|
committer | Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> | 2022-09-15 21:16:05 +0300 |
commit | 30e0600e2f849434e9a86824e2eced6a6c534723 (patch) | |
tree | 1199af3e9d5aadc546e5bffdf057b8275f3aebbd /tools/power/x86/intel-speed-select/isst-display.c | |
parent | 32d6ab45511c65e64202bc0b436301fc8ee83ad8 (diff) | |
download | linux-30e0600e2f849434e9a86824e2eced6a6c534723.tar.xz |
tools/power/x86/intel-speed-select: Convert more function to use isst_id
With pkg and die info added into struct isst_id, more functions can
be converted to use struct isst_id as parameter.
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Diffstat (limited to 'tools/power/x86/intel-speed-select/isst-display.c')
-rw-r--r-- | tools/power/x86/intel-speed-select/isst-display.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/power/x86/intel-speed-select/isst-display.c b/tools/power/x86/intel-speed-select/isst-display.c index f718b9e84136..2b282eea1024 100644 --- a/tools/power/x86/intel-speed-select/isst-display.c +++ b/tools/power/x86/intel-speed-select/isst-display.c @@ -377,8 +377,7 @@ void isst_ctdp_display_information(struct isst_id *id, FILE *outf, int tdp_level format_and_print(outf, level + 1, header, NULL); snprintf(header, sizeof(header), "cpu-count"); - j = get_cpu_count(get_physical_package_id(id->cpu), - get_physical_die_id(id->cpu)); + j = get_cpu_count(id); snprintf(value, sizeof(value), "%d", j); format_and_print(outf, level + 2, header, value); |