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:
Mitsuru IWASAKI 2001-09-08 17:03:26 +00:00
parent e9dc4f3b74
commit d983e760a7

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