summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/acpi_ec.c
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2005-12-06 14:51:55 +0000
committernjl <njl@FreeBSD.org>2005-12-06 14:51:55 +0000
commitae00167101acb4da65678c5b8cee25a40ba4f207 (patch)
tree3353c637f5578d7b74eb1a5de7cdbea4145d524f /sys/dev/acpica/acpi_ec.c
parente5d54d616d4c7600d49de187fc0d990336730ad3 (diff)
downloadFreeBSD-src-ae00167101acb4da65678c5b8cee25a40ba4f207.zip
FreeBSD-src-ae00167101acb4da65678c5b8cee25a40ba4f207.tar.gz
Revert two changes I was testing regarding polling delay.
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 fe5fed7..c6649fb 100644
--- a/sys/dev/acpica/acpi_ec.c
+++ b/sys/dev/acpica/acpi_ec.c
@@ -910,13 +910,13 @@ EcWaitEvent(struct acpi_ec_softc *sc, EC_EVENT Event)
if (!cold)
retval = tsleep(&sc->ec_csrvalue, PZERO, "ecpoll", slp_ival);
else
- AcpiOsStall(hz * 1000); // XXX too big
+ AcpiOsStall(10000);
}
}
/* Calculate new delay and log it. */
if (slp_ival > 0)
- period += i * (hz * 1000);
+ period += i * 10000;
CTR2(KTR_ACPI, "ec got event %#x after %d us", EcStatus, period);
return (Status);
OpenPOWER on IntegriCloud