Skip to contentSkip to conversation

ACPI/init: Correct the comments about acpi_subsystem_init

PATCH Applied Baoquan He 2 participants 2 messages Jul 4, 2016 – Jul 6, 2016 ACPI

lore
Share & tools
lore

Baoquan He

author
#0 lore raw

PATCH 1/1 ACPI/init: Correct the comments about acpi_subsystem_init

In acpi_subsystem_init, function acpi_enable_subsystem is called to do the real job. However with different flags passed to acpi_enable_subsystem, different code is executed. In acpi_subsystem_init with "~ACPI_NO_ACPI_ENABLE" passed in it will only switch over the platform to the ACPI mode. The rest part of acpi_enable_subsystem is done when acpi_bus_init is called.

So the comments above acpi_subsystem_init is not exact, change it here.

---
 drivers/acpi/bus.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/acpi/bus.c +1 -2
index 262ca31..eef468d 100644
@@ -961,8 +961,7 @@ void __init acpi_early_init(void)
 /**
  * acpi_subsystem_init - Finalize the early initialization of ACPI.
  *
- * Switch over the platform to the ACPI mode (if possible), initialize the
- * handling of ACPI events, install the interrupt and global lock handlers.
+ * Switch over the platform to the ACPI mode (if possible).
  *
  * Doing this too early is generally unsafe, but at the same time it needs to be
  * done before all things that really depend on ACPI.  The right spot appears to
Signature · 1 line
2.5.5
#1 lore raw
Quoted 9 lines · Baoquan He

In acpi_subsystem_init, function acpi_enable_subsystem is called to do the real job. However with different flags passed to acpi_enable_subsystem, different code is executed. In acpi_subsystem_init with "~ACPI_NO_ACPI_ENABLE" passed in it will only switch over the platform to the ACPI mode. The rest part of acpi_enable_subsystem is done when acpi_bus_init is called.

So the comments above acpi_subsystem_init is not exact, change it here.

Applied, thanks!