diff options
Diffstat (limited to 'arch')
-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 | } |