diff options
Diffstat (limited to 'arch/parisc/kernel/processor.c')
-rw-r--r-- | arch/parisc/kernel/processor.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/parisc/kernel/processor.c b/arch/parisc/kernel/processor.c index 549f5484342c..370086fb8333 100644 --- a/arch/parisc/kernel/processor.c +++ b/arch/parisc/kernel/processor.c | |||
@@ -82,7 +82,12 @@ static int __cpuinit processor_probe(struct parisc_device *dev) | |||
82 | unsigned long cpuid; | 82 | unsigned long cpuid; |
83 | struct cpuinfo_parisc *p; | 83 | struct cpuinfo_parisc *p; |
84 | 84 | ||
85 | #ifndef CONFIG_SMP | 85 | #ifdef CONFIG_SMP |
86 | if (num_online_cpus() >= NR_CPUS) { | ||
87 | printk(KERN_INFO "num_online_cpus() >= NR_CPUS\n"); | ||
88 | return 1; | ||
89 | } | ||
90 | #else | ||
86 | if (boot_cpu_data.cpu_count > 0) { | 91 | if (boot_cpu_data.cpu_count > 0) { |
87 | printk(KERN_INFO "CONFIG_SMP=n ignoring additional CPUs\n"); | 92 | printk(KERN_INFO "CONFIG_SMP=n ignoring additional CPUs\n"); |
88 | return 1; | 93 | return 1; |