Module Name:    src
Committed By:   jruoho
Date:           Sat Jun  5 16:47:49 UTC 2010

Modified Files:
        src/sys/dev/acpi/acpica: OsdSchedule.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/dev/acpi/acpica/OsdSchedule.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/acpi/acpica/OsdSchedule.c
diff -u src/sys/dev/acpi/acpica/OsdSchedule.c:1.13 src/sys/dev/acpi/acpica/OsdSchedule.c:1.14
--- src/sys/dev/acpi/acpica/OsdSchedule.c:1.13	Wed May 12 17:03:11 2010
+++ src/sys/dev/acpi/acpica/OsdSchedule.c	Sat Jun  5 16:47:49 2010
@@ -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.
@@ -42,7 +42,7 @@
  */
 
 #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/malloc.h>
@@ -140,12 +140,6 @@
 void
 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)
 		DELAY(Milliseconds * 1000);

Reply via email to