Module Name: src
Committed By: jruoho
Date: Sat Jun 5 16:57:48 UTC 2010
Modified Files:
src/sys/dev/acpi/acpica: OsdSchedule.c
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 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.14 src/sys/dev/acpi/acpica/OsdSchedule.c:1.15
--- src/sys/dev/acpi/acpica/OsdSchedule.c:1.14 Sat Jun 5 16:47:49 2010
+++ src/sys/dev/acpi/acpica/OsdSchedule.c Sat Jun 5 16:57:48 2010
@@ -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);
}