--- src/sys/dev/acpica5/acpi.c 2007/01/17 17:31:19 1.28 +++ src/sys/dev/acpica5/acpi.c 2007/01/25 02:43:35 1.29 @@ -429,6 +429,11 @@ acpi_attach(device_t dev) sc->acpi_dev = dev; callout_init(&sc->acpi_sleep_timer); + if ((error = acpi_task_thread_init())) { + device_printf(dev, "Could not start task thread.\n"); + 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 +663,6 @@ acpi_attach(device_t dev) } #endif - if ((error = acpi_task_thread_init())) - goto out; - if ((error = acpi_machdep_init(dev))) goto out;