summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/Osd
diff options
context:
space:
mode:
authoriwasaki <iwasaki@FreeBSD.org>2001-09-08 17:03:26 +0000
committeriwasaki <iwasaki@FreeBSD.org>2001-09-08 17:03:26 +0000
commit936a16ea864a16ee8b88ecb768835e1141576046 (patch)
tree3abc65c1465de37cc5f74c90a1f1c421526f7b62 /sys/dev/acpica/Osd
parent80b788da323bf3caa76b050bf2801349b03942ea (diff)
downloadFreeBSD-src-936a16ea864a16ee8b88ecb768835e1141576046.zip
FreeBSD-src-936a16ea864a16ee8b88ecb768835e1141576046.tar.gz
Don't call tsleep from AcpiOsStall(), call DELAY() always instead.
Process switching during calling AcpiOsStall() caused fatal trap 12 at sleeping/wakeup on some machines.
Diffstat (limited to 'sys/dev/acpica/Osd')
-rw-r--r--sys/dev/acpica/Osd/OsdSchedule.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/dev/acpica/Osd/OsdSchedule.c b/sys/dev/acpica/Osd/OsdSchedule.c
index feaec99..b44671b 100644
--- a/sys/dev/acpica/Osd/OsdSchedule.c
+++ b/sys/dev/acpica/Osd/OsdSchedule.c
@@ -143,11 +143,7 @@ AcpiOsStall (UINT32 Microseconds)
{
FUNCTION_TRACE(__func__);
- if (Microseconds > 1000) { /* long enough to be worth the overhead of sleeping */
- AcpiOsSleep(0, Microseconds / 1000);
- } else {
- DELAY(Microseconds);
- }
+ DELAY(Microseconds);
return_VOID;
}
OpenPOWER on IntegriCloud