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>
This commit is contained in:
Zhang Rui 2022-08-18 01:34:55 +08:00 committed by Srinivas Pandruvada
parent 5f31908165
commit 2e54ba89ec

View File

@ -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);