Skip to content

Commit

Permalink
[CPUFREQ] Make powernow-k7 work on SMP kernels.
Browse files Browse the repository at this point in the history
Even though powernow-k7 doesn't work in SMP environments,
it can work on an SMP configured kernel if there's only
one CPU present, however recalibrate_cpu_khz was returning
-EINVAL on such kernels, so we failed to init the cpufreq driver.

Signed-off-by: Dave Jones <davej@redhat.com>
  • Loading branch information
Dave Jones committed Jun 5, 2006
1 parent b10eec2 commit 436fe7b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions arch/i386/kernel/cpu/cpufreq/powernow-k7.c
Original file line number Diff line number Diff line change
Expand Up @@ -581,10 +581,7 @@ static int __init powernow_cpu_init (struct cpufreq_policy *policy)

rdmsrl (MSR_K7_FID_VID_STATUS, fidvidstatus.val);

/* recalibrate cpu_khz */
result = recalibrate_cpu_khz();
if (result)
return result;
recalibrate_cpu_khz();

fsb = (10 * cpu_khz) / fid_codes[fidvidstatus.bits.CFID];
if (!fsb) {
Expand Down

0 comments on commit 436fe7b

Please sign in to comment.