cvs commit: src/usr.sbin/powerd powerd.c
Nate Lawson
nate at root.org
Sat Feb 18 10:14:51 PST 2006
Dag-Erling Smorgrav wrote:
> des 2006-02-18 11:35:12 UTC
>
> FreeBSD src repository
>
> Modified files:
> usr.sbin/powerd powerd.c
> Log:
> Load cpufreq at startup if it isn't there already.
>
> Revision Changes Path
> 1.18 +4 -0 src/usr.sbin/powerd/powerd.c
>
>
> Index: src/usr.sbin/powerd/powerd.c
> diff -u src/usr.sbin/powerd/powerd.c:1.17 src/usr.sbin/powerd/powerd.c:1.18
> --- src/usr.sbin/powerd/powerd.c:1.17 Tue Jan 3 21:32:02 2006
> +++ src/usr.sbin/powerd/powerd.c Sat Feb 18 11:35:12 2006
> @@ -433,6 +433,10 @@
>
> mode = mode_none;
>
> + /* Make sure the cpufreq module is loaded */
> + if (!kld_isloaded("cpu/p4tcc") && kld_load("cpufreq") == -1)
> + err(1, "failed to load cpufreq module");
> +
> /* Poll interval is in units of ms. */
> poll_ival *= 1000;
This commit is wrong and should be backed out.
1. On some systems, cpufreq doesn't work when loaded after boot
2. cpufreq is not required for powerd. acpi_perf (part of acpi.ko) is a
cpufreq driver and the generic framework is compiled into the kernel.
Of course, I would have told you this if you'd emailed me first.
--
Nate
More information about the cvs-src
mailing list