diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2007-07-09 14:35:27 -0400 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2007-07-13 01:29:51 -0400 |
commit | aac22d0a79f51d7bd93145be36322baaa4b423f8 (patch) | |
tree | 95ac9788e4dcb0335a5e41c284afd0178a30963f /arch/i386 | |
parent | 68485695e5a84399da7b48b208ac42623fe22963 (diff) |
[CPUFREQ] powernow-k8 compile fix.
Make it compile on UP.
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'arch/i386')
-rw-r--r-- | arch/i386/kernel/cpu/cpufreq/powernow-k8.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/i386/kernel/cpu/cpufreq/powernow-k8.c b/arch/i386/kernel/cpu/cpufreq/powernow-k8.c index 977336834127..93192d7e2873 100644 --- a/arch/i386/kernel/cpu/cpufreq/powernow-k8.c +++ b/arch/i386/kernel/cpu/cpufreq/powernow-k8.c | |||
@@ -1322,16 +1322,21 @@ static struct cpufreq_driver cpufreq_amd64_driver = { | |||
1322 | static int __cpuinit powernowk8_init(void) | 1322 | static int __cpuinit powernowk8_init(void) |
1323 | { | 1323 | { |
1324 | unsigned int i, supported_cpus = 0; | 1324 | unsigned int i, supported_cpus = 0; |
1325 | unsigned int booted_cores = 1; | ||
1325 | 1326 | ||
1326 | for_each_online_cpu(i) { | 1327 | for_each_online_cpu(i) { |
1327 | if (check_supported_cpu(i)) | 1328 | if (check_supported_cpu(i)) |
1328 | supported_cpus++; | 1329 | supported_cpus++; |
1329 | } | 1330 | } |
1330 | 1331 | ||
1332 | #ifdef CONFIG_SMP | ||
1333 | booted_cores = cpu_data[0].booted_cores; | ||
1334 | #endif | ||
1335 | |||
1331 | if (supported_cpus == num_online_cpus()) { | 1336 | if (supported_cpus == num_online_cpus()) { |
1332 | printk(KERN_INFO PFX "Found %d %s " | 1337 | printk(KERN_INFO PFX "Found %d %s " |
1333 | "processors (%d cpu cores) (" VERSION ")\n", | 1338 | "processors (%d cpu cores) (" VERSION ")\n", |
1334 | supported_cpus/cpu_data[0].booted_cores, | 1339 | supported_cpus/booted_cores, |
1335 | boot_cpu_data.x86_model_id, supported_cpus); | 1340 | boot_cpu_data.x86_model_id, supported_cpus); |
1336 | return cpufreq_register_driver(&cpufreq_amd64_driver); | 1341 | return cpufreq_register_driver(&cpufreq_amd64_driver); |
1337 | } | 1342 | } |