diff options
-rw-r--r-- | arch/i386/kernel/cpu/cpufreq/powernow-k8.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/i386/kernel/cpu/cpufreq/powernow-k8.c b/arch/i386/kernel/cpu/cpufreq/powernow-k8.c index 3d5110b65cc3..798da7c2b5d0 100644 --- a/arch/i386/kernel/cpu/cpufreq/powernow-k8.c +++ b/arch/i386/kernel/cpu/cpufreq/powernow-k8.c | |||
@@ -1145,14 +1145,14 @@ static int __cpuinit powernowk8_init(void) | |||
1145 | { | 1145 | { |
1146 | unsigned int i, supported_cpus = 0; | 1146 | unsigned int i, supported_cpus = 0; |
1147 | 1147 | ||
1148 | for_each_cpu(i) { | 1148 | for_each_online_cpu(i) { |
1149 | if (check_supported_cpu(i)) | 1149 | if (check_supported_cpu(i)) |
1150 | supported_cpus++; | 1150 | supported_cpus++; |
1151 | } | 1151 | } |
1152 | 1152 | ||
1153 | if (supported_cpus == num_online_cpus()) { | 1153 | if (supported_cpus == num_online_cpus()) { |
1154 | printk(KERN_INFO PFX "Found %d AMD Athlon 64 / Opteron processors (" VERSION ")\n", | 1154 | printk(KERN_INFO PFX "Found %d AMD Athlon 64 / Opteron " |
1155 | supported_cpus); | 1155 | "processors (" VERSION ")\n", supported_cpus); |
1156 | return cpufreq_register_driver(&cpufreq_amd64_driver); | 1156 | return cpufreq_register_driver(&cpufreq_amd64_driver); |
1157 | } | 1157 | } |
1158 | 1158 | ||