From 07b6d7ab6562d550c82012dbe3c2a8385c4c3f20 Mon Sep 17 00:00:00 2001 From: Antonio Huete Jimenez Date: Thu, 27 May 2010 02:13:34 +0200 Subject: [PATCH] acpica - Use tsleep() instead of DELAY() to avoid long delays at boot time. Dragonfly-bug: Obtained-from: FreeBSD --- sys/dev/acpica5/Osd/OsdSchedule.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/sys/dev/acpica5/Osd/OsdSchedule.c b/sys/dev/acpica5/Osd/OsdSchedule.c index 290cd53..f0a32f3 100644 --- a/sys/dev/acpica5/Osd/OsdSchedule.c +++ b/sys/dev/acpica5/Osd/OsdSchedule.c @@ -181,7 +181,7 @@ AcpiOsSleep(ACPI_INTEGER Milliseconds) } if (timo) DELAY(timo * 1000); - } else if (timo > 1000) { + } else if (timo > 0) { tsleep(&dummy, 0, "acpislp", timo); } else { DELAY(Milliseconds * 1000); -- 1.7.0.5