Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/acpi After the GPE handler has finished, inform ACPI...



details:   https://anonhg.NetBSD.org/src/rev/c68e3ecd3713
branches:  trunk
changeset: 762339:c68e3ecd3713
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Sat Feb 19 19:39:28 2011 +0000

description:
After the GPE handler has finished, inform ACPICA that the interrupt has
been handled and it is safe to re-enable the GPE. Should fix all problems
introduced during the merge of ACPICA 20110211.

diffstat:

 sys/dev/acpi/acpi_ec.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 7027de25a95f -r c68e3ecd3713 sys/dev/acpi/acpi_ec.c
--- a/sys/dev/acpi/acpi_ec.c    Sat Feb 19 19:18:11 2011 +0000
+++ b/sys/dev/acpi/acpi_ec.c    Sat Feb 19 19:39:28 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: acpi_ec.c,v 1.69 2011/02/17 10:49:29 jruoho Exp $      */
+/*     $NetBSD: acpi_ec.c,v 1.70 2011/02/19 19:39:28 jruoho Exp $      */
 
 /*-
  * Copyright (c) 2007 Joerg Sonnenberger <joerg%NetBSD.org@localhost>.
@@ -59,7 +59,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_ec.c,v 1.69 2011/02/17 10:49:29 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_ec.c,v 1.70 2011/02/19 19:39:28 jruoho Exp $");
 
 #include <sys/param.h>
 #include <sys/callout.h>
@@ -853,7 +853,7 @@
        acpiec_gpe_state_machine(dv);
        mutex_exit(&sc->sc_mtx);
 
-       return 0;
+       return ACPI_INTERRUPT_HANDLED | ACPI_REENABLE_GPE;
 }
 
 ACPI_STATUS



Home | Main Index | Thread Index | Old Index