linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] acpi: run _OSC after ACPI_FULL_INITIALIZATION
@ 2012-07-16  8:30 Lin Ming
  2012-09-25  4:12 ` Len Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Lin Ming @ 2012-07-16  8:30 UTC (permalink / raw)
  To: lenb; +Cc: linux-acpi, Moore, Robert

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

Signed-off-by: Lin Ming <ming.m.lin@intel.com>
---
 drivers/acpi/bus.c |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c
index adceafd..3532d52 100644
--- a/drivers/acpi/bus.c
+++ b/drivers/acpi/bus.c
@@ -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.
 	 */
-- 
1.7.10




^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] acpi: run _OSC after ACPI_FULL_INITIALIZATION
  2012-07-16  8:30 [PATCH] acpi: run _OSC after ACPI_FULL_INITIALIZATION Lin Ming
@ 2012-09-25  4:12 ` Len Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Len Brown @ 2012-09-25  4:12 UTC (permalink / raw)
  To: Lin Ming; +Cc: linux-acpi, Moore, Robert

applied to 3.7 queue, cc: stable


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-09-25  4:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-16  8:30 [PATCH] acpi: run _OSC after ACPI_FULL_INITIALIZATION Lin Ming
2012-09-25  4:12 ` Len Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).