From owner-cvs-all@FreeBSD.ORG Fri Feb 18 00:23:37 2005 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 447FF16A4CF; Fri, 18 Feb 2005 00:23:37 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0848D43D54; Fri, 18 Feb 2005 00:23:37 +0000 (GMT) (envelope-from njl@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j1I0NaEh056422; Fri, 18 Feb 2005 00:23:36 GMT (envelope-from njl@repoman.freebsd.org) Received: (from njl@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j1I0NaTF056421; Fri, 18 Feb 2005 00:23:36 GMT (envelope-from njl) Message-Id: <200502180023.j1I0NaTF056421@repoman.freebsd.org> From: Nate Lawson Date: Fri, 18 Feb 2005 00:23:36 +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/kern cpufreq_if.m kern_cpu.c src/sys/dev/acpica acpi_perf.c acpi_throttle.c src/sys/dev/cpufreq ichss.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: Fri, 18 Feb 2005 00:23:37 -0000 njl 2005-02-18 00:23:36 UTC FreeBSD src repository Modified files: sys/kern cpufreq_if.m kern_cpu.c sys/dev/acpica acpi_throttle.c acpi_perf.c sys/dev/cpufreq ichss.c Log: Introduce a new method, cpufreq_drv_type(), that returns the type of the driver. This used to be handled by cpufreq_drv_settings() but it's useful to get the type/flags separately from getting the settings. (For example, you don't have to pass an array of cf_setting just to find the driver type.) Use this new method in our in-tree drivers to detect reliably if acpi_perf is present and owns the hardware. This simplifies logic in drivers as well as fixing a bug introduced in my last commit where too many drivers attached. Revision Changes Path 1.9 +19 -5 src/sys/dev/acpica/acpi_perf.c 1.4 +15 -3 src/sys/dev/acpica/acpi_throttle.c 1.5 +18 -9 src/sys/dev/cpufreq/ichss.c 1.2 +8 -0 src/sys/kern/cpufreq_if.m 1.8 +7 -6 src/sys/kern/kern_cpu.c