]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/parisc/kernel/processor.c
cpumask: prepare for iterators to only go to nr_cpu_ids/nr_cpumask_bits.: parisc
[linux-2.6-omap-h63xx.git] / arch / parisc / kernel / processor.c
index ecb609342feb73164114b4089aafafe3aa2d6f9d..44a1a509d894dce17df30bfb5f3310f3318f4125 100644 (file)
@@ -100,8 +100,8 @@ static int __cpuinit processor_probe(struct parisc_device *dev)
        struct cpuinfo_parisc *p;
 
 #ifdef CONFIG_SMP
-       if (num_online_cpus() >= NR_CPUS) {
-               printk(KERN_INFO "num_online_cpus() >= NR_CPUS\n");
+       if (num_online_cpus() >= nr_cpu_ids) {
+               printk(KERN_INFO "num_online_cpus() >= nr_cpu_ids\n");
                return 1;
        }
 #else