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:
Fredrik Holmqvist 2010-05-01 18:25:33 +00:00
parent 42c982a76b
commit d52ea9c90e

View File

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