Lines Matching refs:nr_cpus
60 int nr_cpus;
440 int nr_cpus;
451 nr_cpus = tree_find_integer_property(root, "/openprom/options/smp");
452 if (MAX_NR_PROCESSORS < nr_cpus)
525 system->nr_cpus = nr_cpus;
574 ASSERT(current_cpu >= 0 && current_cpu < system->nr_cpus);
608 ASSERT(current_cpu >= 0 && current_cpu <= system->nr_cpus);
613 if (current_cpu == system->nr_cpus) {
638 return system->nr_cpus;
654 if (cpu_nr < 0 || cpu_nr >= system->nr_cpus)
684 system->nr_cpus, /* halted during an event */
697 mon_init(system->monitor, system->nr_cpus);
714 for (cpu_nr = 0; cpu_nr < system->nr_cpus; cpu_nr++)
721 os_emul_init(system->os_emulation, system->nr_cpus);
724 for (cpu_nr = 0; cpu_nr < system->nr_cpus; cpu_nr++) {
769 system->events, system->processors, system->nr_cpus);
777 system->events, system->processors, system->nr_cpus);
812 if (system->last_cpu == system->nr_cpus
818 ASSERT(which_cpu >= 0 && which_cpu < system->nr_cpus);
972 if (system->last_cpu == system->nr_cpus
986 for (i = 0; i < system->nr_cpus; i++)
990 ASSERT(which_cpu >= 0 && which_cpu < system->nr_cpus);
1104 if (system->last_cpu == system->nr_cpus
1128 if (system->last_cpu == system->nr_cpus
1134 ASSERT(which_cpu >= 0 && which_cpu < system->nr_cpus);