summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2011-01-04 17:06:03 +0000
committerjkim <jkim@FreeBSD.org>2011-01-04 17:06:03 +0000
commit6f7962b4d675f550de0dfe6d628308ed514f4a5d (patch)
tree1f8444b06ee8d5e812d3ac7686ee37655caab4cd /sys/dev
parent03a86814e41d8c9f2bdb47134ea43a44a0b3ea56 (diff)
downloadFreeBSD-src-6f7962b4d675f550de0dfe6d628308ed514f4a5d.zip
FreeBSD-src-6f7962b4d675f550de0dfe6d628308ed514f4a5d.tar.gz
Clarify the previous commit. AcpiFinishGpe() will not clear GPE for us
because we set it to edge-trigger.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/acpica/acpi_ec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/acpica/acpi_ec.c b/sys/dev/acpica/acpi_ec.c
index cbef0d7..7bf1b58 100644
--- a/sys/dev/acpica/acpi_ec.c
+++ b/sys/dev/acpica/acpi_ec.c
@@ -685,10 +685,12 @@ EcGpeQueryHandler(void *Context)
device_printf(sc->ec_dev, "evaluation of query method %s failed: %s\n",
qxx, AcpiFormatException(Status));
}
+
+ /* Reenable runtime GPE if its execution was deferred. */
if (sci_enqueued) {
Status = AcpiFinishGpe(sc->ec_gpehandle, sc->ec_gpebit);
if (ACPI_FAILURE(Status))
- device_printf(sc->ec_dev, "clearing GPE failed: %s\n",
+ device_printf(sc->ec_dev, "reenabling runtime GPE failed: %s\n",
AcpiFormatException(Status));
}
}
OpenPOWER on IntegriCloud