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:
parent
80b788da32
commit
936a16ea86
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user