Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/acpi in acpibut_notify_handler, suppress 'unknown ev...



details:   https://anonhg.NetBSD.org/src/rev/f355b58a938f
branches:  trunk
changeset: 757260:f355b58a938f
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat Aug 21 16:36:15 2010 +0000

description:
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:

 sys/dev/acpi/acpi_button.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 38056bb4ccda -r f355b58a938f sys/dev/acpi/acpi_button.c
--- a/sys/dev/acpi/acpi_button.c        Sat Aug 21 16:17:40 2010 +0000
+++ b/sys/dev/acpi/acpi_button.c        Sat Aug 21 16:36:15 2010 +0000
@@ -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);
        }



Home | Main Index | Thread Index | Old Index