Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/acpi Bypass ACPI_NOTIFY_DEVICE_WAKE also in acpilid(...
details: https://anonhg.NetBSD.org/src/rev/ced701abd7d0
branches: trunk
changeset: 757308:ced701abd7d0
user: jruoho <jruoho%NetBSD.org@localhost>
date: Tue Aug 24 15:03:34 2010 +0000
description:
Bypass ACPI_NOTIFY_DEVICE_WAKE also in acpilid(4). Use aprint_debug_dev(9)
for an unknown notify. (The ACPI drivers should really not print anything
as we now have a global notify handler that can catch the debug information.)
diffstat:
sys/dev/acpi/acpi_button.c | 6 +++---
sys/dev/acpi/acpi_lid.c | 9 ++++++---
2 files changed, 9 insertions(+), 6 deletions(-)
diffs (58 lines):
diff -r 85e743806711 -r ced701abd7d0 sys/dev/acpi/acpi_button.c
--- a/sys/dev/acpi/acpi_button.c Tue Aug 24 15:03:18 2010 +0000
+++ b/sys/dev/acpi/acpi_button.c Tue Aug 24 15:03:34 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_button.c,v 1.37 2010/08/21 16:36:15 jmcneill Exp $ */
+/* $NetBSD: acpi_button.c,v 1.38 2010/08/24 15:03:34 jruoho Exp $ */
/*
* Copyright 2001, 2003 Wasabi Systems, Inc.
@@ -40,7 +40,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_button.c,v 1.37 2010/08/21 16:36:15 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_button.c,v 1.38 2010/08/24 15:03:34 jruoho Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -187,7 +187,7 @@
break;
default:
- aprint_error_dev(dv, "unknown notify 0x%02X\n", notify);
+ aprint_debug_dev(dv, "unknown notify 0x%02X\n", notify);
}
}
diff -r 85e743806711 -r ced701abd7d0 sys/dev/acpi/acpi_lid.c
--- a/sys/dev/acpi/acpi_lid.c Tue Aug 24 15:03:18 2010 +0000
+++ b/sys/dev/acpi/acpi_lid.c Tue Aug 24 15:03:34 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_lid.c,v 1.40 2010/04/27 05:57:43 jruoho Exp $ */
+/* $NetBSD: acpi_lid.c,v 1.41 2010/08/24 15:03:34 jruoho Exp $ */
/*
* Copyright 2001, 2003 Wasabi Systems, Inc.
@@ -40,7 +40,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_lid.c,v 1.40 2010/04/27 05:57:43 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_lid.c,v 1.41 2010/08/24 15:03:34 jruoho Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -165,8 +165,11 @@
(void)AcpiOsExecute(handler, acpilid_status_changed, dv);
break;
+ case ACPI_NOTIFY_DEVICE_WAKE:
+ break;
+
default:
- aprint_error_dev(dv, "unknown notify 0x%02X\n", notify);
+ aprint_debug_dev(dv, "unknown notify 0x%02X\n", notify);
}
}
Home |
Main Index |
Thread Index |
Old Index