kernel: initialize cyclefreq for machno > 0 in guesscpuhz()

This commit is contained in:
cinap_lenrek 2018-01-27 19:58:48 +01:00
parent 26193c4bff
commit 6a23ef917b

View file

@ -133,6 +133,7 @@ guesscpuhz(int aalcycles)
if(m->machno != 0){
m->cpuhz = MACHP(0)->cpuhz;
m->cpumhz = MACHP(0)->cpumhz;
m->cyclefreq = MACHP(0)->cyclefreq;
m->loopconst = MACHP(0)->loopconst;
return;
}