From owner-cvs-all Tue Jan 14 13: 4:48 2003 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 E575137B47C for ; Tue, 14 Jan 2003 13:04:34 -0800 (PST) Received: from mail.speakeasy.net (mail14.speakeasy.net [216.254.0.214]) by mx1.FreeBSD.org (Postfix) with ESMTP id 98B0B43F5B for ; Tue, 14 Jan 2003 13:04:33 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: (qmail 2331 invoked from network); 14 Jan 2003 21:04:40 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail14.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 14 Jan 2003 21:04:40 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.6/8.12.6) with ESMTP id h0EL4VUT007542; Tue, 14 Jan 2003 16:04:31 -0500 (EST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Tue, 14 Jan 2003 16:04:43 -0500 (EST) From: John Baldwin To: Nate Lawson Subject: Re: cvs commit: src/sys/dev/acpica acpi_cpu.c Cc: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, Wilko Bulte Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 14-Jan-2003 Nate Lawson wrote: > On Tue, 14 Jan 2003, Wilko Bulte wrote: >> On Tue, Jan 14, 2003 at 02:54:13PM -0500, John Baldwin wrote: >> > Albeit lying. If it were just available but not enabled, then the >> > CPU wouldn't slow down when I pulled the power cord of out my laptop. >> > However, when I pull the power cord out of my laptop, the CPU does >> > slow down. Thus, it would seem rather obvious that CPU throttling >> > is most certainly enabled and not just available. >> >> How does this work on desktops? I've seen one of my P2 boxes report >> this throttling thing? >> >> Surely not the power plug being pulled out, although it slowed down >> greatly when pulled ;) > > No, that's the manual override S5 state. ;) > > Throttling on non-laptop systems can only be requested by the BIOS or OS, > I believe. On FreeBSD, that's via sysctl. Basically you have events > coming in and actions taken. When you unplug the power on a laptop, the > BIOS delivers the event to the acpi interpreter which runs the dsdt to > decide what to do. That's my basic understanding. BIOS's don't usually throttle the CPU in the DSDT AFAIK. That is done by the OS in response to the event. In FreeBSD's case, the acpi_acad(4) driver changes the system state which can result in a change in the current throttling speed. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message