[CPUFREQ] Recalibrate cpu_khz [1/2]
authorDave Jones <davej@redhat.com>
Wed, 1 Jun 2005 02:03:45 +0000 (19:03 -0700)
committerDave Jones <davej@redhat.com>
Wed, 1 Jun 2005 02:03:45 +0000 (19:03 -0700)
commit91350ed49bf3613e243c2e216228cd4ae8f32516
tree4c9e99fe077224e678bdd03353d37efe1f5af81e
parentbf6fc9fd2d848d06b8f6c4caccef1dba9ef8c4c6
[CPUFREQ] Recalibrate cpu_khz [1/2]

We have to recalibrate cpu_khz in order to use the current FID instead the max
FID since some BIOS do not put the processor at maximum frequency at POST.
Also, some BIOS will change the processor frequency at our back after cpu_khz
was calibrate.  Finally, this will fix a long standing bug when we do
something like this:

# rmmod powernow-k7
# modprobe powernow-k7

Signed-off-by: Bruno Ducrot <ducrot@poupinou.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Dave Jones <davej@redhat.com>
arch/i386/kernel/cpu/cpufreq/powernow-k7.c