Files
linux/drivers/acpi
Jonathan Cameron cd9239660b ACPI: processor: Move checks and availability of acpi_processor earlier
Make the per_cpu(processors, cpu) entries available earlier so that
they are available in arch_register_cpu() as ARM64 will need access
to the acpi_handle to distinguish between acpi_processor_add()
and earlier registration attempts (which will fail as _STA cannot
be checked).

Reorder the remove flow to clear this per_cpu() after
arch_unregister_cpu() has completed, allowing it to be used in
there as well.

Note that on x86 for the CPU hotplug case, the pr->id prior to
acpi_map_cpu() may be invalid. Thus the per_cpu() structures
must be initialized after that call or after checking the ID
is valid (not hotplug path).

Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/20240529133446.28446-7-Jonathan.Cameron@huawei.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
2024-06-28 18:38:28 +01:00
..
2024-04-08 16:10:27 +02:00
2024-03-19 18:30:54 -07:00
2024-05-13 20:13:48 +02:00
2024-04-08 16:10:27 +02:00
2024-03-27 16:36:45 +01:00
2023-09-21 20:55:43 +02:00
2022-01-22 08:33:37 +02:00
2020-11-09 19:08:06 +01:00
2023-03-27 20:50:28 +02:00
2020-11-09 19:08:06 +01:00