return smp_chrp_cpu_nr; 
/* Count CPUs in the device-tree */ cpuid = 1;	/* the boot cpu is logical cpu 0 */ while ((cpus = of_find_node_by_type(cpus, "cpu")) != NULL) { phys = ncpus; reg = (unsigned int *) get_property(cpus, "reg", &reglen); if (reg && reglen >= sizeof(unsigned int)) /* hmmm, not having a reg property would be bad */ phys = *reg; if (phys != boot_cpuid_phys) { set_hard_smp_processor_id(cpuid, phys); ++cpuid; } ++ncpus; }  printk(KERN_INFO "CHRP SMP probe found %d cpus\n", ncpus);  /* Nothing more to do if less than 2 of them */ if (ncpus <= 1) return 1;  mpic_request_ipis();  return ncpus; 
static int __init smp_chrp_probe(void){	if (smp_chrp_cpu_nr > 1)		openpic_request_IPIs();	return smp_chrp_cpu_nr;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/80579e1f4a6b5f5dec92faa6c3e0645961c99091/smp.c/buggy/arch/powerpc/platforms/chrp/smp.c