From owner-freebsd-arch Sun Mar 3 4:56:10 2002 Delivered-To: freebsd-arch@freebsd.org Received: from tasogare.imasy.or.jp (tasogare.imasy.or.jp [202.227.24.5]) by hub.freebsd.org (Postfix) with ESMTP id 442B537B400; Sun, 3 Mar 2002 04:56:02 -0800 (PST) Received: from localhost (root@tasogare.imasy.or.jp [202.227.24.5]) by tasogare.imasy.or.jp (8.11.6+3.4W/8.11.6/tasogare) with ESMTP/inet id g23CtxP93169; Sun, 3 Mar 2002 21:56:00 +0900 (JST) (envelope-from iwasaki@jp.FreeBSD.org) Date: Sun, 03 Mar 2002 21:55:52 +0900 (JST) Message-Id: <20020303.215552.112630160.iwasaki@jp.FreeBSD.org> To: msmith@freebsd.org Cc: arch@freebsd.org Subject: Re: CFR: Generalized power profile From: Mitsuru IWASAKI In-Reply-To: <200112281839.fBSIdGF13050@mass.dis.org> References: <20011227.182533.112880512.iwasaki@jp.FreeBSD.org> <200112281839.fBSIdGF13050@mass.dis.org> X-Mailer: Mew version 2.1 on Emacs 20.7 / Mule 4.0 (HANANOEN) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG [Sorry for too late reply. It seems that I've woken up from hibernation.] From: Mike Smith Subject: Re: CFR: Generalized power profile Date: Fri, 28 Dec 2001 10:39:16 -0800 Message-ID: <200112281839.fBSIdGF13050@mass.dis.org> > > I've made the changes for generalized power profile based on ACPI > > power profile code, dev/acpica/acpi_powerprofile.c and some related > > files. This makes other power-management system (APM for now) to be > > able to generate power profile change events (ie. AC-line status > > changes), and other kernel components, not only the ACPI components, > > can be notified the events. > > Thanks for picking up on this. > > > This includes: > > - move subroutines in acpi_powerprofile.c to kern/subr_power.c > > If we think this might become more complicated, do we want sys/dev/power? > If not, this is an OK place. Maybe not I guess, I'll put them into kern/subr_power.c for now. > What do you think of POWER_PROFILE_OFF as an alternate mechanism for > switching the system off, rather than the current shutdown hook? I'm not sure whether power profile change event should include power off event too or not, but I updated the diffs a bit adding sanity check code. http://people.freebsd.org/~iwasaki/acpi/power_profile-20020303.diff I'll commit this in a day or two. Thanks To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message