From owner-svn-src-all@FreeBSD.ORG Mon Jan 3 23:37:42 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E05EB10656D0; Mon, 3 Jan 2011 23:37:42 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id D01368FC1C; Mon, 3 Jan 2011 23:37:42 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id p03NbgL6009095; Mon, 3 Jan 2011 23:37:42 GMT (envelope-from jkim@svn.freebsd.org) Received: (from jkim@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id p03Nbgrr009093; Mon, 3 Jan 2011 23:37:42 GMT (envelope-from jkim@svn.freebsd.org) Message-Id: <201101032337.p03Nbgrr009093@svn.freebsd.org> From: Jung-uk Kim Date: Mon, 3 Jan 2011 23:37:42 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r216940 - head/sys/dev/acpica X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Jan 2011 23:37:43 -0000 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