Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/acpi/acpica/Subsystem Swap the order of buffer initi...



details:   https://anonhg.NetBSD.org/src/rev/971c332f68a4
branches:  trunk
changeset: 554674:971c332f68a4
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Fri Oct 31 17:21:01 2003 +0000

description:
Swap the order of buffer initialization and _STA/_INI execution.  _INI methods
sometimes want to store data in global buffers (e.g. on the Inspiron 8500, to
remember initial battery status).

diffstat:

 sys/dev/acpi/acpica/Subsystem/utxface.c |  32 ++++++++++++++++----------------
 1 files changed, 16 insertions(+), 16 deletions(-)

diffs (56 lines):

diff -r 758e2817d1d5 -r 971c332f68a4 sys/dev/acpi/acpica/Subsystem/utxface.c
--- a/sys/dev/acpi/acpica/Subsystem/utxface.c   Fri Oct 31 17:04:12 2003 +0000
+++ b/sys/dev/acpi/acpica/Subsystem/utxface.c   Fri Oct 31 17:21:01 2003 +0000
@@ -115,7 +115,7 @@
  *****************************************************************************/
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: utxface.c,v 1.6 2003/03/04 17:25:30 kochi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: utxface.c,v 1.7 2003/10/31 17:21:01 mycroft Exp $");
 
 #define __UTXFACE_C__
 
@@ -328,21 +328,6 @@
     ACPI_FUNCTION_TRACE ("AcpiInitializeObjects");
 
     /*
-     * Initialize all device objects in the namespace
-     * This runs the _STA and _INI methods.
-     */
-    if (!(Flags & ACPI_NO_DEVICE_INIT))
-    {
-        ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "[Init] Initializing ACPI Devices\n"));
-
-        Status = AcpiNsInitializeDevices ();
-        if (ACPI_FAILURE (Status))
-        {
-            return_ACPI_STATUS (Status);
-        }
-    }
-
-    /*
      * Initialize the objects that remain uninitialized.  This
      * runs the executable AML that is part of the declaration of OpRegions
      * and Fields.
@@ -359,6 +344,21 @@
     }
 
     /*
+     * Initialize all device objects in the namespace
+     * This runs the _STA and _INI methods.
+     */
+    if (!(Flags & ACPI_NO_DEVICE_INIT))
+    {
+        ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "[Init] Initializing ACPI Devices\n"));
+
+        Status = AcpiNsInitializeDevices ();
+        if (ACPI_FAILURE (Status))
+        {
+            return_ACPI_STATUS (Status);
+        }
+    }
+
+    /*
      * Empty the caches (delete the cached objects) on the assumption that
      * the table load filled them up more than they will be at runtime --
      * thus wasting non-paged memory.



Home | Main Index | Thread Index | Old Index