summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/acpi_ec.c
diff options
context:
space:
mode:
authortakawata <takawata@FreeBSD.org>2002-07-02 03:38:07 +0000
committertakawata <takawata@FreeBSD.org>2002-07-02 03:38:07 +0000
commit905b0a04596398db00e56495cd2b729846990b39 (patch)
tree34aebf16df1e2d145d1d916f2ac88c1d474588f0 /sys/dev/acpica/acpi_ec.c
parentee962e9598cd8f3308bf0825b779fa0b9b9b2730 (diff)
downloadFreeBSD-src-905b0a04596398db00e56495cd2b729846990b39.zip
FreeBSD-src-905b0a04596398db00e56495cd2b729846990b39.tar.gz
Make interrupt driven EC transaction optional.
Diffstat (limited to 'sys/dev/acpica/acpi_ec.c')
-rw-r--r--sys/dev/acpica/acpi_ec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/acpica/acpi_ec.c b/sys/dev/acpica/acpi_ec.c
index 96da6d3..cfb2239 100644
--- a/sys/dev/acpica/acpi_ec.c
+++ b/sys/dev/acpica/acpi_ec.c
@@ -618,7 +618,9 @@ EcWaitEventIntr(struct acpi_ec_softc *sc, EC_EVENT Event)
ACPI_FUNCTION_TRACE_U32((char *)(uintptr_t)__func__, (UINT32)Event);
/* XXX this should test whether interrupts are available some other way */
+#ifdef ACPI_EC_EVENT_DRIVEN
if(cold)
+#endif
return_ACPI_STATUS(EcWaitEvent(sc, Event));
if (!EcIsLocked(sc))
OpenPOWER on IntegriCloud