]> git.baikalelectronics.ru Git - kernel.git/commitdiff
tools/power/x86/intel-speed-select: Fix CLX-N package information output
authorPrarit Bhargava <prarit@redhat.com>
Thu, 2 Apr 2020 18:07:32 +0000 (14:07 -0400)
committerSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Mon, 11 May 2020 18:30:16 +0000 (11:30 -0700)
On CLX-N the perf-profile output is missing the package, die, and cpu
output.  On CLX-N the pkg_dev struct will never be evaluated by the core
code so pkg_dev.processed is always 0 and the package, die, and cpu
information is never output.

Set the pkg_dev.processed flag to 1 for CLX-N processors.

Signed-off-by: Prarit Bhargava <prarit@redhat.com>
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Cc: andriy.shevchenko@linux.intel.com
Cc: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Cc: platform-driver-x86@vger.kernel.org
tools/power/x86/intel-speed-select/isst-config.c

index d1ac57be0cbdc170210e76067285f86755dc1d9d..2e64b9b6eb2e0fa2414a9b54df80af2186fa85c9 100644 (file)
@@ -1169,6 +1169,7 @@ static void dump_clx_n_config_for_cpu(int cpu, void *arg1, void *arg2,
 
                ctdp_level = &clx_n_pkg_dev.ctdp_level[0];
                pbf_info = &ctdp_level->pbf_info;
+               clx_n_pkg_dev.processed = 1;
                isst_ctdp_display_information(cpu, outf, tdp_level, &clx_n_pkg_dev);
                free_cpu_set(ctdp_level->core_cpumask);
                free_cpu_set(pbf_info->core_cpumask);