Skip to content

Commit 0fce758

Browse files
gautshenrafaeljw
authored andcommitted
ACPI: CPPC: Limit perf ctrs in PCC check only to online CPUs
per_cpu(cpc_desc_ptr, cpu) object is initialized for only the online CPU via acpi_soft_cpu_online() --> __acpi_processor_start() --> acpi_cppc_processor_probe(). However the function cppc_perf_ctrs_in_pcc() checks if the CPPC perf-ctrs are in a PCC region for all the present CPUs, which breaks when the kernel is booted with "nosmt=force". Hence, limit the check only to the online CPUs. Fixes: ae2df91 ("ACPI: CPPC: Disable FIE if registers in PCC regions") Reviewed-by: "Mario Limonciello (AMD) (kernel.org)" <[email protected]> Signed-off-by: Gautham R. Shenoy <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 8821c8e commit 0fce758

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/acpi/cppc_acpi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1435,7 +1435,7 @@ bool cppc_perf_ctrs_in_pcc(void)
14351435
{
14361436
int cpu;
14371437

1438-
for_each_present_cpu(cpu) {
1438+
for_each_online_cpu(cpu) {
14391439
struct cpc_register_resource *ref_perf_reg;
14401440
struct cpc_desc *cpc_desc;
14411441

0 commit comments

Comments
 (0)