Load cpufreq at startup if it isn't there already.
This commit is contained in:
parent
c134d8cc31
commit
aa5cfd0420
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user