Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/acpi/acpica Remove also the debug-printf in case of ...



details:   https://anonhg.NetBSD.org/src/rev/753e8562f03f
branches:  trunk
changeset: 755424:753e8562f03f
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Sat Jun 05 16:57:48 2010 +0000

description:
Remove also the debug-printf in case of long Stall() requests;

       /*
        * sleep(9) isn't safe because AcpiOsStall may be called
        * with interrupt-disabled. (eg. by AcpiEnterSleepState)
        * we should watch out for long stall requests.
        */

ACPICA has long printed a similar warning by itself. Moreover, this message
was never reached as the interpreter does not invoke AcpiOsStall() when a
delay longer than 255 usec is requested.

diffstat:

 sys/dev/acpi/acpica/OsdSchedule.c |  14 ++------------
 1 files changed, 2 insertions(+), 12 deletions(-)

diffs (35 lines):

diff -r a9e78ba13505 -r 753e8562f03f sys/dev/acpi/acpica/OsdSchedule.c
--- a/sys/dev/acpi/acpica/OsdSchedule.c Sat Jun 05 16:47:49 2010 +0000
+++ b/sys/dev/acpi/acpica/OsdSchedule.c Sat Jun 05 16:57:48 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: OsdSchedule.c,v 1.14 2010/06/05 16:47:49 jruoho Exp $  */
+/*     $NetBSD: OsdSchedule.c,v 1.15 2010/06/05 16:57:48 jruoho Exp $  */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -42,7 +42,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: OsdSchedule.c,v 1.14 2010/06/05 16:47:49 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: OsdSchedule.c,v 1.15 2010/06/05 16:57:48 jruoho Exp $");
 
 #include <sys/param.h>
 #include <sys/malloc.h>
@@ -159,16 +159,6 @@
 void
 AcpiOsStall(UINT32 Microseconds)
 {
-       /*
-        * sleep(9) isn't safe because AcpiOsStall may be called
-        * with interrupt-disabled. (eg. by AcpiEnterSleepState)
-        * we should watch out for long stall requests.
-        */
-#ifdef ACPI_DEBUG
-       if (Microseconds > 1000)
-               ACPI_DEBUG_PRINT((ACPI_DB_INFO, "long stall: %uus\n",
-                   Microseconds));
-#endif
 
        delay(Microseconds);
 }



Home | Main Index | Thread Index | Old Index