diff options
author | Can Erkin Acar <canacar@cvs.openbsd.org> | 2007-11-05 17:32:21 +0000 |
---|---|---|
committer | Can Erkin Acar <canacar@cvs.openbsd.org> | 2007-11-05 17:32:21 +0000 |
commit | d30f046402976b10fbf530523d1a3573107faf5f (patch) | |
tree | a1c54d082b7bd5b265df108a7a85beeb7229289f /sys | |
parent | b9eb05771bce13fde349b8431fe518a445ff9f77 (diff) |
Establish the acpi interrupt earlier. Fixes problems with some
GENERIC.MP kernels not getting acpi interrupts. This is a
workaround until the real issue with late establishment is fixed.
ok weingart@, beck@, gwk@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/acpi/acpi.c | 6 |
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, |