Index: acpi.c =================================================================== RCS file: /home/source/dragonfly/cvs/src/sys/dev/acpica5/acpi.c,v retrieving revision 1.28 diff -u -p -r1.28 acpi.c --- acpi.c 17 Jan 2007 17:31:19 -0000 1.28 +++ acpi.c 22 Jan 2007 23:56:08 -0000 @@ -429,6 +429,9 @@ acpi_attach(device_t dev) sc->acpi_dev = dev; callout_init(&sc->acpi_sleep_timer); + if ((error = acpi_task_thread_init())) + goto out; + /* * Set the globals from our tunables. This is needed because ACPI-CA * uses UINT8 for some values and we have no tunable_byte. @@ -658,9 +661,6 @@ acpi_attach(device_t dev) } #endif - if ((error = acpi_task_thread_init())) - goto out; - if ((error = acpi_machdep_init(dev))) goto out;