Lines Matching refs:nr_cpus
701 int *pos, int nr_cpus)
710 for_each_set_bit(thr, cpumask_bits(&t->sib_thr[i]), nr_cpus)
716 static void scan_core_topology(int *map, struct topology *t, int nr_cpus)
723 for_each_set_bit(cpu, cpumask_bits(&t->sib_core[i]), nr_cpus)
724 scan_thread_topology(map, t, cpu, &pos, nr_cpus);
727 static int str_to_bitmap(char *s, cpumask_t *b, int nr_cpus)
738 if (cpu.cpu >= nr_cpus) {
753 int i, nr_cpus;
758 nr_cpus = min(env->nr_cpus_online, MAX_NR_CPUS);
774 if (str_to_bitmap(sib_core, &t.sib_core[i], nr_cpus)) {
783 if (str_to_bitmap(sib_thr, &t.sib_thr[i], nr_cpus)) {
791 topology_map = malloc(sizeof(int) * nr_cpus);
797 for (i = 0; i < nr_cpus; i++)
800 scan_core_topology(topology_map, &t, nr_cpus);