Lines Matching defs:nr_cpus
700 int *pos, int nr_cpus)
709 for_each_set_bit(thr, cpumask_bits(&t->sib_thr[i]), nr_cpus)
715 static void scan_core_topology(int *map, struct topology *t, int nr_cpus)
722 for_each_set_bit(cpu, cpumask_bits(&t->sib_core[i]), nr_cpus)
723 scan_thread_topology(map, t, cpu, &pos, nr_cpus);
726 static int str_to_bitmap(char *s, cpumask_t *b, int nr_cpus)
739 if (c.cpu >= nr_cpus) {
754 int i, nr_cpus;
759 nr_cpus = min(env->nr_cpus_online, MAX_NR_CPUS);
775 if (str_to_bitmap(sib_core, &t.sib_core[i], nr_cpus)) {
784 if (str_to_bitmap(sib_thr, &t.sib_thr[i], nr_cpus)) {
792 topology_map = malloc(sizeof(int) * nr_cpus);
798 for (i = 0; i < nr_cpus; i++)
801 scan_core_topology(topology_map, &t, nr_cpus);