Author: jkim
Date: Mon Jan  3 23:37:42 2011
New Revision: 216940
URL: http://svn.freebsd.org/changeset/base/216940

Log:
  Fix parameters for wakeup(9) and tsleep(9).
  
  MFC after:    3 days

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

Modified: head/sys/dev/acpica/acpi_ec.c
==============================================================================
--- head/sys/dev/acpica/acpi_ec.c       Mon Jan  3 23:11:52 2011        
(r216939)
+++ head/sys/dev/acpica/acpi_ec.c       Mon Jan  3 23:37:42 2011        
(r216940)
@@ -707,7 +707,7 @@ EcGpeHandler(ACPI_HANDLE GpeDevice, UINT
      * address and then data values.)
      */
     atomic_add_int(&sc->ec_gencount, 1);
-    wakeup(&sc);
+    wakeup(sc);
 
     /*
      * If the EC_SCI bit of the status register is set, queue a query handler.
@@ -863,7 +863,7 @@ EcWaitEvent(struct acpi_ec_softc *sc, EC
         */
        for (i = 0; i < count; i++) {
            if (gen_count == sc->ec_gencount)
-               tsleep(&sc, 0, "ecgpe", slp_ival);
+               tsleep(sc, 0, "ecgpe", slp_ival);
            /*
             * Record new generation count.  It's possible the GPE was
             * just to notify us that a query is needed and we need to
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to