From owner-cvs-all@FreeBSD.ORG Fri Aug 13 06:21:44 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9257A16A6C9; Fri, 13 Aug 2004 06:21:44 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8663F43D5A; Fri, 13 Aug 2004 06:21:44 +0000 (GMT) (envelope-from njl@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i7D6LiR2070923; Fri, 13 Aug 2004 06:21:44 GMT (envelope-from njl@repoman.freebsd.org) Received: (from njl@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i7D6LiGC070922; Fri, 13 Aug 2004 06:21:44 GMT (envelope-from njl) Message-Id: <200408130621.i7D6LiGC070922@repoman.freebsd.org> From: Nate Lawson Date: Fri, 13 Aug 2004 06:21:44 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/acpica acpi_cmbat.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Aug 2004 06:21:44 -0000 njl 2004-08-13 06:21:44 UTC FreeBSD src repository Modified files: sys/dev/acpica acpi_cmbat.c Log: MPSAFE locking * Serialize ops in acpi_cmbat_notify_handler(), acpi_cmbat_ioctl(), acpi_cmbat_init_battery(), and acpi_cmbat_get_battinfo(). * Get the softc directly in acpi_cmbat_get_total_battinfo() rather than build an array of them. * Don't queue a _BIF query after receiving a notify. Since we clear the timespec, a _BIF query will be done in the context of the next caller. * Add asserts to leaf functions that operate on shared data. * Remove the bst/bif updating flags now that we hold the lock over the full query. * Explain various comments in more detail. Revision Changes Path 1.35 +125 -169 src/sys/dev/acpica/acpi_cmbat.c