summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/acpi_ec.c
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2011-01-03 23:37:42 +0000
committerjkim <jkim@FreeBSD.org>2011-01-03 23:37:42 +0000
commit2527ba42c4a6eaaf6426b0cdd57674b635768ffa (patch)
tree3ca550ece4dc020484a340ddaf9ed8ca5a2a3e49 /sys/dev/acpica/acpi_ec.c
parent1657a60f2156c2aae47f00611e0e7a300ffa2e37 (diff)
downloadFreeBSD-src-2527ba42c4a6eaaf6426b0cdd57674b635768ffa.zip
FreeBSD-src-2527ba42c4a6eaaf6426b0cdd57674b635768ffa.tar.gz
Fix parameters for wakeup(9) and tsleep(9).
MFC after: 3 days
Diffstat (limited to 'sys/dev/acpica/acpi_ec.c')
-rw-r--r--sys/dev/acpica/acpi_ec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpica/acpi_ec.c b/sys/dev/acpica/acpi_ec.c
index baac0d0..54a1602 100644
--- a/sys/dev/acpica/acpi_ec.c
+++ b/sys/dev/acpica/acpi_ec.c
@@ -707,7 +707,7 @@ EcGpeHandler(ACPI_HANDLE GpeDevice, UINT32 GpeNumber, void *Context)
* address and then data values.)
*/
atomic_add_int(&sc->ec_gencount, 1);
- wakeup(&sc);
+ wakeup(sc);
/*
* If the EC_SCI bit of the status register is set, queue a query handler.
@@ -863,7 +863,7 @@ EcWaitEvent(struct acpi_ec_softc *sc, EC_EVENT Event, u_int gen_count)
*/
for (i = 0; i < count; i++) {
if (gen_count == sc->ec_gencount)
- tsleep(&sc, 0, "ecgpe", slp_ival);
+ tsleep(sc, 0, "ecgpe", slp_ival);
/*
* Record new generation count. It's possible the GPE was
* just to notify us that a query is needed and we need to
OpenPOWER on IntegriCloud