The longrun cpufreq module reports a false minimum frequency 3MHz on
300-600MHz Crusoe processor. This may be due to a calculation bug
in the module.
Original patch from Kaz Sasayama <
[email protected]>
submitted as http://bugs.debian.org/468149 patch ported to x86
Cc: Kaz Sasayama <[email protected]>
Signed-off-by: maximilian attems <[email protected]>
Signed-off-by: Dave Jones <[email protected]>
if ((ecx > 95) || (ecx == 0) || (eax < ebx))
return -EIO;
- edx = (eax - ebx) / (100 - ecx);
+ edx = ((eax - ebx) * 100) / (100 - ecx);
*low_freq = edx * 1000; /* back to kHz */
dprintk("low frequency is %u kHz\n", *low_freq);