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
Nate Lawson
njl at FreeBSD.org
Fri Feb 18 00:23:37 GMT 2005
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
More information about the cvs-src
mailing list