summaryrefslogtreecommitdiffstats
path: root/tools/power
diff options
context:
space:
mode:
authorZhang Rui <rui.zhang@intel.com>2022-08-17 19:34:55 +0200
committerSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>2023-03-22 21:36:54 +0100
commit2e54ba89ec5286d041999e6566ae96267d33b002 (patch)
tree586463d97fd78c987948261276cee3737e03aa11 /tools/power
parenttools/power/x86/intel-speed-select: Display amx_p1 and cooling_type (diff)
downloadlinux-2e54ba89ec5286d041999e6566ae96267d33b002.tar.xz
linux-2e54ba89ec5286d041999e6566ae96267d33b002.zip
tools/power/x86/intel-speed-select: Allow display non-cpu power domain info
Some power domain may not have CPUs associated, allow displaying information for these non-cpu power domains. 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-display.c3
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 8abb0335e091..1bfa8e4b39b2 100644
--- a/tools/power/x86/intel-speed-select/isst-display.c
+++ b/tools/power/x86/intel-speed-select/isst-display.c
@@ -682,8 +682,7 @@ void isst_display_result(struct isst_id *id, FILE *outf, char *feature, char *cm
char value[256];
int level = 3;
- if (id->cpu >= 0)
- level = print_package_info(id, outf);
+ level = print_package_info(id, outf);
snprintf(header, sizeof(header), "%s", feature);
format_and_print(outf, level + 1, header, NULL);