Skip to content

ACPI: remove .start() and .stop() methods

Bjorn Helgaas linux-acpi 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest9 patches 3 repliesIn review
  2. v19 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9ACPI: processor: remove KOBJ_ONLINE/KOBJ_OFFLINE eventsdrivers/acpi/processor_core.c+1 -150 replies
2/9ACPI: processor: clean up in acpi_processor_start() error exitsdrivers/acpi/processor_core.c+22 -70 replies
3/9ACPI: processor: move acpi_processor_start() after acpi_processor_add()drivers/acpi/processor_core.c+84 -840 replies
4/9ACPI: processor: remove .start() methoddrivers/acpi/processor_core.c+7 -370 replies
5/9ACPI: memory hotplug: remove .start() methoddrivers/acpi/acpi_memhotplug.c+14 -260 replies
6/9ACPI: EC: move acpi_ec_start() after acpi_ec_add()drivers/acpi/ec.c+56 -560 replies
7/9ACPI: EC: remove .start() methoddrivers/acpi/ec.c+1 -180 replies
8/9ACPI: EC: remove .stop() methoddrivers/acpi/ec.c+1 -140 replies
9/9ACPI: remove unused acpi_device_ops .stop methoddrivers/acpi/scan.c include/acpi/acpi_bus.h+0 -70 replies

Reviews trailers per patch

6 of 9 patches have a Reviewed-by or Acked-by.

PatchAlex ChiangYasunori Goto
SeriesT-b
1/9
2/9R-b
3/9
4/9R-b
5/9R-b
6/9
7/9R-b
8/9R-b
9/9R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH 0/9 v2] ACPI: remove .start() and .stop() methods

From: Bjorn Helgaas <[email protected]>

These patches remove several .start() methods (by folding them into .add() methods) and a .stop() method (by folding it into .remove()). There are no remaining .stop() methods, so I also removed it from the driver_ops structure.

This simplifies the ACPI driver structure and will make it easier to support hotplug in the Linux/ACPI core.

They also remove the KOBJ_ONLINE and KOBJ_OFFLINE events generated by the processor driver for CPU hotplug events. As far as I know, these events are unused.

I don't have a way to test most of these changes, unfortunately, so I'd welcome any feedback or testing reports.

These apply to the acpi-test branch.

---

Bjorn Helgaas (9):
ACPI: processor: remove KOBJ_ONLINE/KOBJ_OFFLINE events
ACPI: processor: clean up in acpi_processor_start() error exits
ACPI: processor: move acpi_processor_start() after acpi_processor_add()
ACPI: processor: remove .start() method
ACPI: memory hotplug: remove .start() method
ACPI: EC: move acpi_ec_start() after acpi_ec_add()
ACPI: EC: remove .start() method
ACPI: EC: remove .stop() method
ACPI: remove unused acpi_device_ops .stop method

 drivers/acpi/acpi_memhotplug.c |   40 +++----
 drivers/acpi/ec.c              |  118 ++++++++--------------
 drivers/acpi/processor_core.c  |  219 +++++++++++++++++-----------------------
 drivers/acpi/scan.c            |    5 -
 include/acpi/acpi_bus.h        |    2 
 5 files changed, 153 insertions(+), 231 deletions(-)
Signature · 1 line
Bjorn