Lines Matching refs:nr_cpus
700 int *pos, int nr_cpus) in scan_thread_topology() argument
709 for_each_set_bit(thr, cpumask_bits(&t->sib_thr[i]), nr_cpus) in scan_thread_topology()
715 static void scan_core_topology(int *map, struct topology *t, int nr_cpus) in scan_core_topology() argument
722 for_each_set_bit(cpu, cpumask_bits(&t->sib_core[i]), nr_cpus) in scan_core_topology()
723 scan_thread_topology(map, t, cpu, &pos, nr_cpus); in scan_core_topology()
726 static int str_to_bitmap(char *s, cpumask_t *b, int nr_cpus) in str_to_bitmap() argument
739 if (c >= nr_cpus) { in str_to_bitmap()
754 int i, nr_cpus; in svg_build_topology_map() local
758 nr_cpus = min(env->nr_cpus_online, MAX_NR_CPUS); in svg_build_topology_map()
774 if (str_to_bitmap(sib_core, &t.sib_core[i], nr_cpus)) { in svg_build_topology_map()
783 if (str_to_bitmap(sib_thr, &t.sib_thr[i], nr_cpus)) { in svg_build_topology_map()
791 topology_map = malloc(sizeof(int) * nr_cpus); in svg_build_topology_map()
797 for (i = 0; i < nr_cpus; i++) in svg_build_topology_map()
800 scan_core_topology(topology_map, &t, nr_cpus); in svg_build_topology_map()