Skip to content

Commit

Permalink
[CPUFREQ] Crusoe: longrun cpufreq module reports false min freq
Browse files Browse the repository at this point in the history
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 <kazssym@hypercore.co.jp>
submitted as http://bugs.debian.org/468149 patch ported to x86

Cc: Kaz Sasayama <kazssym@hypercore.co.jp>
Signed-off-by: maximilian attems <max@stro.at>
Signed-off-by: Dave Jones <davej@redhat.com>
  • Loading branch information
maximilian attems authored and Dave Jones committed May 19, 2008
1 parent eba9fe9 commit 667ad4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/cpu/cpufreq/longrun.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ static unsigned int __init longrun_determine_freqs(unsigned int *low_freq,
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);
Expand Down

0 comments on commit 667ad4f

Please sign in to comment.