Load cpufreq at startup if it isn't there already.

This commit is contained in:
Dag-Erling Smørgrav 2006-02-18 11:35:12 +00:00
parent c134d8cc31
commit aa5cfd0420

View File

@ -433,6 +433,10 @@ main(int argc, char * argv[])
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;