FreeBSD/sys/contrib/dev/acpica/components/executer/exsystem.c
/*******************************************************************************
 *
 * FUNCTION:    AcpiExSystemDoSleep
 *
 * PARAMETERS:  HowLong         - The amount of time to sleep,
 *                                in milliseconds
 *
 * RETURN:      None
 *
 * DESCRIPTION: Sleep the running thread for specified amount of time.
 *
 ******************************************************************************/
AcpiExSystemDoSleep
PARAMETERS:  HowLong         - The amount of time to sleep,
in milliseconds

None

Sleep the running thread for specified amount of time.
AcpiExSystemDoSleep PARAMETERS : HowLong - The amount of time to sleep in milliseconds None Sleep the running thread for specified amount of time .
ACPI_STATUS
AcpiExSystemDoSleep (
    UINT64                  HowLong)
{
    ACPI_FUNCTION_ENTRY ();
    AcpiExExitInterpreter ();
    if (HowLong > ACPI_MAX_SLEEP)
    {
        HowLong = ACPI_MAX_SLEEP;
    }
    AcpiOsSleep (HowLong);
    AcpiExEnterInterpreter ();
    return (AE_OK);
}
ACPI_STATUS AcpiExSystemDoSleep ( UINT64 HowLong ) { ACPI_FUNCTION_ENTRY ( ) ; AcpiExExitInterpreter ( ) ; if ( HowLong > ACPI_MAX_SLEEP ) { HowLong = ACPI_MAX_SLEEP ; } AcpiOsSleep ( HowLong ) ; AcpiExEnterInterpreter ( ) ; return ( AE_OK ) ; }
FUNCTION:    AcpiExSystemDoSleep
 PARAMETERS:  HowLong         - The amount of time to sleep,
                                in milliseconds
FUNCTION : AcpiExSystemDoSleep PARAMETERS : HowLong - The amount of time to sleep in milliseconds
/* Since this thread will sleep, we must release the interpreter */ /*
     * For compatibility with other ACPI implementations and to prevent
     * accidental deep sleeps, limit the sleep time to something reasonable.
     */ /* And now we must get the interpreter again */