summaryrefslogtreecommitdiff
path: root/sys/dev/acpi/acpi.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/acpi/acpi.c')
-rw-r--r--sys/dev/acpi/acpi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c
index d990d954328..aa2f2c6f677 100644
--- a/sys/dev/acpi/acpi.c
+++ b/sys/dev/acpi/acpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpi.c,v 1.93 2007/11/03 20:33:48 jordan Exp $ */
+/* $OpenBSD: acpi.c,v 1.94 2007/11/05 17:32:20 canacar Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
@@ -646,6 +646,8 @@ acpi_attach(struct device *parent, struct device *self, void *aux)
sc->sc_thread->sc = sc;
sc->sc_thread->running = 1;
+ acpi_attach_machdep(sc);
+
kthread_create_deferred(acpi_create_thread, sc);
#endif /* SMALL_KERNEL */
}
@@ -1347,8 +1349,6 @@ acpi_isr_thread(void *arg)
struct acpi_softc *sc = thread->sc;
u_int32_t gpe;
- acpi_attach_machdep(sc);
-
/*
* If we have an interrupt handler, we can get notification
* when certain status bits changes in the ACPI registers,