+1
−1
Loading
per_cpu(cpc_desc_ptr, cpu) object is initialized for only the online CPUs via acpi_soft_cpu_online() --> __acpi_processor_start() --> acpi_cppc_processor_probe(). However the function cppc_allow_fast_switch() checks for the validity of the _CPC object for all the present CPUs. This breaks when the kernel is booted with "nosmt=force". Check fast_switch capability only on online CPUs Fixes: 15eece6c ("ACPI: CPPC: Fix NULL pointer dereference when nosmp is used") Reviewed-by:"Mario Limonciello (AMD) (kernel.org)" <superm1@kernel.org> Signed-off-by:
Gautham R. Shenoy <gautham.shenoy@amd.com> Link: https://patch.msgid.link/20251107074145.2340-4-gautham.shenoy@amd.com Signed-off-by:
Rafael J. Wysocki <rafael.j.wysocki@intel.com>