summaryrefslogtreecommitdiff
path: root/sys/dev/acpi
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2010-07-21 19:42:06 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2010-07-21 19:42:06 +0000
commit57e393350d15879801a4074eec46387ca41cd700 (patch)
tree984c4d1e41e28f4fb33990ee985f8de6135ab30b /sys/dev/acpi
parente753f3034d33ed99f6f10d270a2615464663d6de (diff)
in the acpi GPE handler, late ack level interrupts not edge interrupts.
Duh.
Diffstat (limited to 'sys/dev/acpi')
-rw-r--r--sys/dev/acpi/acpi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c
index 46bad3855df..0336eaf2052 100644
--- a/sys/dev/acpi/acpi.c
+++ b/sys/dev/acpi/acpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpi.c,v 1.185 2010/07/21 15:01:52 deraadt Exp $ */
+/* $OpenBSD: acpi.c,v 1.186 2010/07/21 19:42:05 deraadt Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
@@ -1711,7 +1711,7 @@ acpi_gpe(struct acpi_softc *sc, int gpe, void *arg)
s = spltty();
mask = (1L << (gpe & 7));
- if (sc->gpe_table[gpe].edge)
+ if (!sc->gpe_table[gpe].edge)
acpi_write_pmreg(sc, ACPIREG_GPE_STS, gpe>>3, mask);
en = acpi_read_pmreg(sc, ACPIREG_GPE_EN, gpe>>3);
acpi_write_pmreg(sc, ACPIREG_GPE_EN, gpe>>3, en | mask);