diff options
| author | Mitsuru IWASAKI <iwasaki@FreeBSD.org> | 2002-10-24 10:56:33 +0000 |
|---|---|---|
| committer | Mitsuru IWASAKI <iwasaki@FreeBSD.org> | 2002-10-24 10:56:33 +0000 |
| commit | 4690674e12122c930b1134eeb06e11696d463bc7 (patch) | |
| tree | cafc66d7186172650553777a363d39e3904da32a | |
| parent | 56e77afa59ee3c7d7df90edd28b16d09a289cd92 (diff) | |
Notes
| -rw-r--r-- | sys/dev/acpica/acpi_ec.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/acpica/acpi_ec.c b/sys/dev/acpica/acpi_ec.c index 96da6d351d46..f41cebff69e9 100644 --- a/sys/dev/acpica/acpi_ec.c +++ b/sys/dev/acpica/acpi_ec.c @@ -244,6 +244,9 @@ struct acpi_ec_softc { int ec_csrvalue; }; +static int acpi_ec_event_driven = 0; +TUNABLE_INT("hw.acpi.ec.event_driven", &acpi_ec_event_driven); + #define EC_LOCK_TIMEOUT 1000 /* 1ms */ static __inline ACPI_STATUS @@ -618,7 +621,7 @@ 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 */ - if(cold) + if (cold || acpi_ec_event_driven) return_ACPI_STATUS(EcWaitEvent(sc, Event)); if (!EcIsLocked(sc)) |
