mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 10:19:26 +00:00
Load cpufreq at startup if it isn't there already.
This commit is contained in:
parent
c134d8cc31
commit
aa5cfd0420
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=155806
@ -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