diff options
Diffstat (limited to 'arch/powerpc/kernel/smp.c')
-rw-r--r-- | arch/powerpc/kernel/smp.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/arch/powerpc/kernel/smp.c b/arch/powerpc/kernel/smp.c index c1cf4a1522d9..ac2621af3154 100644 --- a/arch/powerpc/kernel/smp.c +++ b/arch/powerpc/kernel/smp.c | |||
@@ -369,13 +369,8 @@ void __init smp_prepare_cpus(unsigned int max_cpus) | |||
369 | cpumask_set_cpu(boot_cpuid, cpu_sibling_mask(boot_cpuid)); | 369 | cpumask_set_cpu(boot_cpuid, cpu_sibling_mask(boot_cpuid)); |
370 | cpumask_set_cpu(boot_cpuid, cpu_core_mask(boot_cpuid)); | 370 | cpumask_set_cpu(boot_cpuid, cpu_core_mask(boot_cpuid)); |
371 | 371 | ||
372 | if (smp_ops) | 372 | if (smp_ops && smp_ops->probe) |
373 | if (smp_ops->probe) | 373 | smp_ops->probe(); |
374 | max_cpus = smp_ops->probe(); | ||
375 | else | ||
376 | max_cpus = NR_CPUS; | ||
377 | else | ||
378 | max_cpus = 1; | ||
379 | } | 374 | } |
380 | 375 | ||
381 | void smp_prepare_boot_cpu(void) | 376 | void smp_prepare_boot_cpu(void) |