Commit 08a227f5 authored by Dave Jones's avatar Dave Jones

[CPUFREQ] Fix longhauls speed calculations.

We got half multipliers horribly wrong, which made us think we could
clock the CPU much higher than we actually could.
parent 2eb930bb
...@@ -63,7 +63,11 @@ static struct cpufreq_frequency_table *longhaul_table; ...@@ -63,7 +63,11 @@ static struct cpufreq_frequency_table *longhaul_table;
static unsigned int calc_speed (int mult, int fsb) static unsigned int calc_speed (int mult, int fsb)
{ {
return ((mult/10)*fsb) + ((mult%10)*(fsb/2)); int mhz;
mhz = (mult/10)*fsb;
if (mult%10)
mhz += fsb/2;
return mhz;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment