Remove the recently added warning about long Sleep() requests.
This is now in ACPICA (20100528): Added support to limit the maximum time for the ASL Sleep() operator. To prevent accidental deep sleeps, limit the maximum time that Sleep() will actually sleep. Configurable, the default maximum is two seconds. ACPICA bugzilla 854.
This commit is contained in:
parent
0ab294f640
commit
3aca70d9a2
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: OsdSchedule.c,v 1.13 2010/05/12 17:03:11 jruoho Exp $ */
|
/* $NetBSD: OsdSchedule.c,v 1.14 2010/06/05 16:47:49 jruoho Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2001 Wasabi Systems, Inc.
|
* Copyright 2001 Wasabi Systems, Inc.
|
||||||
@ -42,7 +42,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: OsdSchedule.c,v 1.13 2010/05/12 17:03:11 jruoho Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: OsdSchedule.c,v 1.14 2010/06/05 16:47:49 jruoho Exp $");
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/malloc.h>
|
#include <sys/malloc.h>
|
||||||
@ -140,12 +140,6 @@ AcpiOsExecute(ACPI_EXECUTE_TYPE Type, ACPI_OSD_EXEC_CALLBACK Function,
|
|||||||
void
|
void
|
||||||
AcpiOsSleep(ACPI_INTEGER Milliseconds)
|
AcpiOsSleep(ACPI_INTEGER Milliseconds)
|
||||||
{
|
{
|
||||||
static bool once = false;
|
|
||||||
|
|
||||||
if (Milliseconds > 2000 && once != true) {
|
|
||||||
aprint_error("acpi0: WARNING: long Sleep()\n");
|
|
||||||
once = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (cold || doing_shutdown || acpi_suspended)
|
if (cold || doing_shutdown || acpi_suspended)
|
||||||
DELAY(Milliseconds * 1000);
|
DELAY(Milliseconds * 1000);
|
||||||
|
Loading…
Reference in New Issue
Block a user