Author: jkim
Date: Tue Jan  4 17:06:03 2011
New Revision: 216965
URL: http://svn.freebsd.org/changeset/base/216965

Log:
  Clarify the previous commit.  AcpiFinishGpe() will not clear GPE for us
  because we set it to edge-trigger.

Modified:
  head/sys/dev/acpica/acpi_ec.c

Modified: head/sys/dev/acpica/acpi_ec.c
==============================================================================
--- head/sys/dev/acpica/acpi_ec.c       Tue Jan  4 16:51:24 2011        
(r216964)
+++ head/sys/dev/acpica/acpi_ec.c       Tue Jan  4 17:06:03 2011        
(r216965)
@@ -685,10 +685,12 @@ EcGpeQueryHandler(void *Context)
        device_printf(sc->ec_dev, "evaluation of query method %s failed: %s\n",
            qxx, AcpiFormatException(Status));
     }
+
+    /* Reenable runtime GPE if its execution was deferred. */
     if (sci_enqueued) {
        Status = AcpiFinishGpe(sc->ec_gpehandle, sc->ec_gpebit);
        if (ACPI_FAILURE(Status))
-           device_printf(sc->ec_dev, "clearing GPE failed: %s\n",
+           device_printf(sc->ec_dev, "reenabling runtime GPE failed: %s\n",
                AcpiFormatException(Status));
     }
 }
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to