Trying to fix #5861. As we are now so early in the boot process, we should really avoid functions that wait. The change in r36565 from waiting on condvar seems to have moved the problems over to the snooze method.
We now use spinlocks instead of snoozing while booting. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36569 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
42c982a76b
commit
d52ea9c90e
@ -115,6 +115,7 @@
|
||||
|
||||
|
||||
#include <OS.h>
|
||||
#include <kernel.h>
|
||||
#include <stdio.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
@ -819,7 +820,10 @@ void
|
||||
AcpiOsSleep(ACPI_INTEGER milliseconds)
|
||||
{
|
||||
DEBUG_FUNCTION_F("milliseconds: %lu", milliseconds);
|
||||
snooze(milliseconds * 1000);
|
||||
if (gKernelStartup)
|
||||
spin(milliseconds * 1000);
|
||||
else
|
||||
snooze(milliseconds * 1000);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user