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.
This commit is contained in:
iwasaki 2001-09-08 17:03:26 +00:00
parent 80b788da32
commit 936a16ea86

View File

@ -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;
}