Skip to content

RFC ACPI: processor: refactor acpi_processor_{get_info|remove}

Miguel Luis linux-acpi lkml llvm oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 15 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4ACPI: processor: refactor acpi_processor_get_info: evaluation of processor declarationdrivers/acpi/acpi_processor.c+51 -272 replies
2/4ACPI: processor: refactor acpi_processor_get_info: isolate cpu hotpug init delaydrivers/acpi/acpi_processor.c+18 -163 replies
3/4ACPI: processor: refactor acpi_processor_get_info: isolate acpi_{map|unmap}_cpu under CONFIG_ACPI_HOTPLUG_CPUdrivers/acpi/acpi_processor.c+15 -26 replies
4/4ACPI: processor: refactor acpi_processor_remove: isolate acpi_unmap_cpu under CONFIG_ACPI_HOTPLUG_CPUdrivers/acpi/acpi_processor.c+9 -43 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/4] ACPI: processor: refactor acpi_processor_{get_info|remove}

Both acpi_processor_get_info and acpi_processor_remove functions have architecture dependent functionality enabled via CONFIG_ACPI_HOTPLUG_CPU.

Current pre-processor guards are restricting too much of functionality which makes it dificult to integrate other features such as Virtual CPU hotplug/unplug for arm64.

This series, applied on top of v6.9-rc3, suggests a refactoring on these two functions with the intent to understand them better and hopefully ease integration of more functionality.

Apart from patches 2/4 and 3/4, which could be squashed but left them separated intentionally so it would ease reviewing, changes are self-contained.

So far I've boot tested it successfully alone and as a prefix for vCPU hotplug/unplug patches [1], on arm64.

[1]: https://lore.kernel.org/linux-arm-kernel/[email protected]/

Miguel Luis (4):
ACPI: processor: refactor acpi_processor_get_info: evaluation of
processor declaration
ACPI: processor: refactor acpi_processor_get_info: isolate cpu hotpug
init delay
ACPI: processor: refactor acpi_processor_get_info: isolate
acpi_{map|unmap}_cpu under CONFIG_ACPI_HOTPLUG_CPU
ACPI: processor: refactor acpi_processor_remove: isolate
acpi_unmap_cpu under CONFIG_ACPI_HOTPLUG_CPU

 drivers/acpi/acpi_processor.c | 138 ++++++++++++++++++++++------------
 1 file changed, 91 insertions(+), 47 deletions(-)

--
2.43.0