summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorjmcneill <jmcneill@NetBSD.org>2010-08-21 16:36:15 +0000
committerjmcneill <jmcneill@NetBSD.org>2010-08-21 16:36:15 +0000
commitc5ec9c2c52304b83308f7b4bc3c28d6b2dabb42a (patch)
tree144be16cd81926d140c535ee49204a01b4268103 /sys/dev
parent90493f6f0857c6c60f9451db5d5d0ae03ecb9062 (diff)
in acpibut_notify_handler, suppress 'unknown event' messages for
ACPI_NOTIFY_DEVICE_WAKE. Control method power and sleep buttons can generate this event upon waking from G1 sleep to indicate that it was responsible for waking the system.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/acpi/acpi_button.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/acpi/acpi_button.c b/sys/dev/acpi/acpi_button.c
index 911cac5fae1..7f2a0d862e6 100644
--- a/sys/dev/acpi/acpi_button.c
+++ b/sys/dev/acpi/acpi_button.c
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_button.c,v 1.36 2010/04/27 05:57:43 jruoho Exp $ */
+/* $NetBSD: acpi_button.c,v 1.37 2010/08/21 16:36:15 jmcneill Exp $ */
/*
* Copyright 2001, 2003 Wasabi Systems, Inc.
@@ -40,7 +40,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_button.c,v 1.36 2010/04/27 05:57:43 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_button.c,v 1.37 2010/08/21 16:36:15 jmcneill Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -183,6 +183,9 @@ acpibut_notify_handler(ACPI_HANDLE handle, uint32_t notify, void *context)
(void)AcpiOsExecute(handler, acpibut_pressed_event, dv);
break;
+ case ACPI_NOTIFY_DEVICE_WAKE:
+ break;
+
default:
aprint_error_dev(dv, "unknown notify 0x%02X\n", notify);
}