From owner-p4-projects@FreeBSD.ORG Mon Dec 1 06:59:47 2003 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 6E25D16A4D0; Mon, 1 Dec 2003 06:59:47 -0800 (PST) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4997A16A4CE for ; Mon, 1 Dec 2003 06:59:47 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9194843FE0 for ; Mon, 1 Dec 2003 06:59:46 -0800 (PST) (envelope-from jhb@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.9/8.12.9) with ESMTP id hB1ExkXJ037354 for ; Mon, 1 Dec 2003 06:59:46 -0800 (PST) (envelope-from jhb@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.9/8.12.9/Submit) id hB1ExkJ3037351 for perforce@freebsd.org; Mon, 1 Dec 2003 06:59:46 -0800 (PST) (envelope-from jhb@freebsd.org) Date: Mon, 1 Dec 2003 06:59:46 -0800 (PST) Message-Id: <200312011459.hB1ExkJ3037351@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to jhb@freebsd.org using -f From: John Baldwin To: Perforce Change Reviews Subject: PERFORCE change 43224 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Dec 2003 14:59:47 -0000 http://perforce.freebsd.org/chv.cgi?CH=43224 Change 43224 by jhb@jhb_blue on 2003/12/01 06:59:27 More notes after dinking with the current power resource code (which is nice actually) while trying to get my fans to work last week. Affected files ... .. //depot/projects/power/notes#8 edit Differences ... ==== //depot/projects/power/notes#8 (text+ko) ==== @@ -1,4 +1,4 @@ -This branch exists to provide support for manging the power state of devices. +rThis branch exists to provide support for manging the power state of devices. For example, being able to power down devices that aren't in use and power them on when they are needed. @@ -20,6 +20,9 @@ - XXX: need to handle _PRx and _SxD !! - We should be able to hook the power resource stuff up once we have our power shadow tree in the acpi_SetPowerState() function. + - Use the power resource consumer power state change stuff in + acpi_SetDevicePowerState(). We need to pre-register all the resources + and consumers in a tree sweep though to do this properly. - define a bus method for powering up/down devices - bus_set_powerstate(parent, child, state) where state is on or off # actually on/off is insufficient for a power management daemon that