Skip to contentSkip to conversation

acpi: run _OSC after ACPI_FULL_INITIALIZATION

PATCH Applied Lin Ming 2 participants 2 messages Jul 16, 2012 – Sep 25, 2012 ACPI

lore
Share & tools
lore

Lin Ming

author
#0 lore raw

PATCH 1/1 acpi: run _OSC after ACPI_FULL_INITIALIZATION

_OSC method may exist in module level code, so it must be called after ACPI_FULL_INITIALIZATION

---
 drivers/acpi/bus.c |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
drivers/acpi/bus.c +6 -2
index adceafd..3532d52 100644
@@ -980,8 +980,6 @@ static int __init acpi_bus_init(void)
 	status = acpi_ec_ecdt_probe();
 	/* Ignore result. Not having an ECDT is not fatal. */
 
-	acpi_bus_osc_support();
-
 	status = acpi_initialize_objects(ACPI_FULL_INITIALIZATION);
 	if (ACPI_FAILURE(status)) {
 		printk(KERN_ERR PREFIX "Unable to initialize ACPI objects\n");
@@ -989,6 +987,12 @@ static int __init acpi_bus_init(void)
 	}
 
 	/*
+	 * _OSC method may exist in module level code,
+	 * so it must be run after ACPI_FULL_INITIALIZATION
+	 */
+	acpi_bus_osc_support();
+
+	/*
 	 * _PDC control method may load dynamic SSDT tables,
 	 * and we need to install the table handler before that.
 	 */
Signature · 1 line
1.7.10
reviewer Applied
#1 lore raw

applied to 3.7 queue, cc: stable