Do not use tsleep when the system is not booted. This fixes acpi_ec
authorYONETANI Tomokazu <y0netan1@dragonflybsd.org>
Sun, 6 Mar 2005 05:39:26 +0000 (05:39 +0000)
committerYONETANI Tomokazu <y0netan1@dragonflybsd.org>
Sun, 6 Mar 2005 05:39:26 +0000 (05:39 +0000)
commit5895535bb685c02610a830080d1ddcae1ee95285
tree69366e97df5c12243696a0fc8f1bbee551b8f852
parent5c294b820a9c852ec1730634ebc35ae365e313c6
Do not use tsleep when the system is not booted. This fixes acpi_ec
occasionally failing to attach. Additionally bring in the relavant
change from revision 1.56 of acpi_ec.c from FreeBSD code, which
inspired the patch submitter.

Submitted-by: Brock Johnson <wildefire [at] isentry.homelinux.org>
Inspired-by-and-Taken-from: FreeBSD src/sys/dev/acpica/acpi_ec.c,1.56
sys/dev/acpica5/acpi_ec.c