acpi: Fix up the interrupt timer after enabling ACPI
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Wed, 25 May 2011 05:08:01 +0000 (13:08 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Wed, 25 May 2011 05:08:01 +0000 (13:08 +0800)
So that the interrupt cputimer that is choked by ACPI power management
could be resurrected before probing various devices.

sys/dev/acpica5/acpi.c

index 776e6fa..baa3385 100644 (file)
@@ -514,6 +514,14 @@ acpi_attach(device_t dev)
        goto out;
     }
 
+    /*
+     * Fix up the interrupt timer after enabling ACPI, so that the
+     * interrupt cputimer that choked by ACPI power management could
+     * be resurrected before probing various devices.
+     */
+    DELAY(5000);
+    cputimer_intr_pmfixup();
+
     /*
      * Call the ECDT probe function to provide EC functionality before
      * the namespace has been evaluated.