From: Zhang Rui Date: Wed, 17 Aug 2022 17:34:55 +0000 (+0800) Subject: tools/power/x86/intel-speed-select: Allow display non-cpu power domain info X-Git-Tag: v6.6.17~5045^2~39^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2e54ba89ec5286d041999e6566ae96267d33b002;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Srinivas Pandruvada --- diff --git a/tools/power/x86/intel-speed-select/isst-display.c b/tools/power/x86/intel-speed-select/isst-display.c index 8abb033..1bfa8e4 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);