Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Jan 2011 23:37:42 +0000 (UTC)
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r216940 - head/sys/dev/acpica
Message-ID:  <201101032337.p03Nbgrr009093@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101032337.p03Nbgrr009093>