tools/power/x86/intel-speed-select: turbo-freq auto mode with SMT off
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Sat, 7 Jan 2023 01:48:07 +0000 (17:48 -0800)
committerHans de Goede <hdegoede@redhat.com>
Fri, 3 Feb 2023 08:57:10 +0000 (09:57 +0100)
commit6ed9e363157cb858bdbb8c595f04839d3f245414
tree6904ed0a8b5a452024a92dd5a49f10cd5e77a40e
parentcf3b8e8f55e1a6c747e89599695fb8783c8a69c2
tools/power/x86/intel-speed-select: turbo-freq auto mode with SMT off

When SMT is disabled from kernel command line, sibling CPUs still
appears in the sysfs as offline CPUs. This is a problem when turbo-freq
is enabled in auto mode. They are still assigned to CLOS value
of 3 as they are still in the present CPU list. But they are not in the
sibling list of a CPU. When the CPU is a high priority CPU, because of
sibling it will be still set to CLOS to 3 as CLOS is assigned at core
level not at CPU level.

So, avoid setting CLOS 3 to offline CPU.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
tools/power/x86/intel-speed-select/isst-config.c