From owner-freebsd-current@FreeBSD.ORG Tue Feb 1 17:08:15 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9A0D016A4CE; Tue, 1 Feb 2005 17:08:15 +0000 (GMT) Received: from ylpvm01.prodigy.net (ylpvm01-ext.prodigy.net [207.115.57.32]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3530D43D1D; Tue, 1 Feb 2005 17:08:15 +0000 (GMT) (envelope-from nate@root.org) Received: from [10.0.0.34] (adsl-67-119-74-222.dsl.sntc01.pacbell.net [67.119.74.222])j11H8DvE010808; Tue, 1 Feb 2005 12:08:13 -0500 Message-ID: <41FFB77B.10305@root.org> Date: Tue, 01 Feb 2005 09:08:11 -0800 From: Nate Lawson User-Agent: Mozilla Thunderbird 1.0RC1 (X11/20041205) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Nate Lawson References: <41FFB53B.3020907@root.org> In-Reply-To: <41FFB53B.3020907@root.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: acpi@freebsd.org cc: current@freebsd.org Subject: Re: New cpufreq framework and drivers X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Feb 2005 17:08:15 -0000 Nate Lawson wrote: > Below is the first patch of cpufreq for wider testing. It has the > framework, cpu pseudodriver updates, and two hardware drivers -- ACPI > performance states and SpeedStep-ICH. It has had a lot of testing on > supported hardware but needs wider testing before importing. Other > hardware drivers can be quickly ported to this interface, and I'm happy > to assist their maintainers. > > http://www.root.org/~nate/freebsd/cpufreq.diff Sorry, I'm so familiar with the interface that I forgot to mention how to use it. To test, build a new kernel and modules. Load one or both of acpi_perf.ko and cpufreq.ko at boot time. Type "sysctl dev.cpu" to see the new freq and freq_levels output. If you're a driver maintainer, see sys/cpu.h and speedstep_ich.c or acpi_perf.c for an example how to provide the driver interface. -- Nate