From owner-cvs-all@FreeBSD.ORG Tue Sep 7 17:02:09 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 03BF516A4CE; Tue, 7 Sep 2004 17:02:09 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id F19F843D45; Tue, 7 Sep 2004 17:02:08 +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 i87H28W3035477; Tue, 7 Sep 2004 17:02:08 GMT (envelope-from njl@repoman.freebsd.org) Received: (from njl@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i87H28Ie035476; Tue, 7 Sep 2004 17:02:08 GMT (envelope-from njl) Message-Id: <200409071702.i87H28Ie035476@repoman.freebsd.org> From: Nate Lawson Date: Tue, 7 Sep 2004 17:02:08 +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_thermal.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: Tue, 07 Sep 2004 17:02:09 -0000 njl 2004-09-07 17:02:08 UTC FreeBSD src repository Modified files: sys/dev/acpica acpi_thermal.c Log: Don't change the state of the system in acpi_tz_establish(). Before, we would turn off all fans when initializing a zone. However, the HP Omnibook 500 generates a notify saying the zone needs to be re-evaluated whenever its fan is switched on or off. This produced an infinite loop. Also, note that running _SCP can generate the same notify. Since we need to make sure old fan references are turned off when getting new ones, run acpi_tz_monitor() first. This will turn off any unneeded fans. Then, check for new settings. After that, run acpi_tz_monitor() again to turn on/off any fans referenced by the new settings. Tested by: brooks Revision Changes Path 1.50 +22 -16 src/sys/dev/acpica/acpi_thermal.c