Module Name:    src
Committed By:   cegger
Date:           Thu Nov 18 14:40:32 UTC 2010

Modified Files:
        src/sys/external/intel-public/acpica/dist/events: evxface.c

Log Message:
fix AcpiEnableGpe:
GPEs get enabled at ACPI initialization. AcpiInstallGpeHandler() disables
GPEs using AcpiEvDisableGpe() w/o decrementing RuntimeCount.
So when acpiec(4) enables the GPE after installing the GPE Handler then
AcpiEnableGpe() does not call AcpiEvEnableGpe() because RuntimeCount
says it is already enabled which is wrong.
So decrement the RuntimeCount in AcpiInstallGpeHandler() right
before calling AcpiEvDisableGpe().


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.3 -r1.2 \
    src/sys/external/intel-public/acpica/dist/events/evxface.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/external/intel-public/acpica/dist/events/evxface.c
diff -u src/sys/external/intel-public/acpica/dist/events/evxface.c:1.1.1.3 src/sys/external/intel-public/acpica/dist/events/evxface.c:1.2
--- src/sys/external/intel-public/acpica/dist/events/evxface.c:1.1.1.3	Sun Jun  6 18:17:09 2010
+++ src/sys/external/intel-public/acpica/dist/events/evxface.c	Thu Nov 18 14:40:31 2010
@@ -749,6 +749,7 @@
 
     /* Disable the GPE before installing the handler */
 
+    GpeEventInfo->RuntimeCount--;
     Status = AcpiEvDisableGpe (GpeEventInfo);
     if (ACPI_FAILURE (Status))
     {

Reply via email to