Module Name:    src
Committed By:   jmcneill
Date:           Sat Aug 21 16:36:15 UTC 2010

Modified Files:
        src/sys/dev/acpi: acpi_button.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 src/sys/dev/acpi/acpi_button.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/acpi_button.c
diff -u src/sys/dev/acpi/acpi_button.c:1.36 src/sys/dev/acpi/acpi_button.c:1.37
--- src/sys/dev/acpi/acpi_button.c:1.36	Tue Apr 27 05:57:43 2010
+++ src/sys/dev/acpi/acpi_button.c	Sat Aug 21 16:36:15 2010
@@ -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 @@
 		(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);
 	}

Reply via email to