diff options
author | Zhang Rui <rui.zhang@intel.com> | 2022-08-20 18:58:15 +0300 |
---|---|---|
committer | Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> | 2022-09-15 21:09:22 +0300 |
commit | 09db040339847c39a64bce6c06351c1f4a571cc2 (patch) | |
tree | 1158d45a473c2b1db15e16eee080153809eba281 /tools/power/x86 | |
parent | 76fba1221e3045570478381c3436c8c2a2656376 (diff) | |
download | linux-09db040339847c39a64bce6c06351c1f4a571cc2.tar.xz |
tools/power/x86/intel-speed-select: Fix cpu count for TDP level display
In the function isst_ctdp_display_information(), call to the function
get_cpu_count() is using get_physical_die_id() instead of
get_physical_package_id(). This will result in wrong display of
CPU count in that level.
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
[ Srinivas Pandruvada: fixed subject and change log ]
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Diffstat (limited to 'tools/power/x86')
-rw-r--r-- | tools/power/x86/intel-speed-select/isst-display.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/power/x86/intel-speed-select/isst-display.c b/tools/power/x86/intel-speed-select/isst-display.c index f97d8859ada7..726115d2fbb7 100644 --- a/tools/power/x86/intel-speed-select/isst-display.c +++ b/tools/power/x86/intel-speed-select/isst-display.c @@ -377,7 +377,7 @@ void isst_ctdp_display_information(int cpu, 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_die_id(cpu), + j = get_cpu_count(get_physical_package_id(cpu), get_physical_die_id(cpu)); snprintf(value, sizeof(value), "%d", j); format_and_print(outf, level + 2, header, value); |