Lines Matching refs:tl
1542 sd_init(struct sched_domain_topology_level *tl, in sd_init() argument
1546 struct sd_data *sdd = &tl->data; in sd_init()
1555 sched_domains_curr_level = tl->numa_level; in sd_init()
1558 sd_weight = cpumask_weight(tl->mask(cpu)); in sd_init()
1560 if (tl->sd_flags) in sd_init()
1561 sd_flags = (*tl->sd_flags)(); in sd_init()
1593 .name = tl->name, in sd_init()
1598 cpumask_and(sd_span, cpu_map, tl->mask(cpu)); in sd_init()
1627 if (sched_domains_numa_distance[tl->numa_level] > node_reclaim_distance) { in sd_init()
1676 #define for_each_sd_topology(tl) \ argument
1677 for (tl = sched_domain_topology; tl->mask; tl++)
1679 void set_sched_topology(struct sched_domain_topology_level *tl) in set_sched_topology() argument
1684 sched_domain_topology = tl; in set_sched_topology()
1810 struct sched_domain_topology_level *tl; in sched_init_numa() local
1915 tl = kzalloc((i + nr_levels + 1) * in sched_init_numa()
1917 if (!tl) in sched_init_numa()
1924 tl[i] = sched_domain_topology[i]; in sched_init_numa()
1929 tl[i++] = (struct sched_domain_topology_level){ in sched_init_numa()
1939 tl[i] = (struct sched_domain_topology_level){ in sched_init_numa()
1949 sched_domain_topology = tl; in sched_init_numa()
2169 struct sched_domain_topology_level *tl; in __sdt_alloc() local
2172 for_each_sd_topology(tl) { in __sdt_alloc()
2173 struct sd_data *sdd = &tl->data; in __sdt_alloc()
2238 struct sched_domain_topology_level *tl; in __sdt_free() local
2241 for_each_sd_topology(tl) { in __sdt_free()
2242 struct sd_data *sdd = &tl->data; in __sdt_free()
2272 static struct sched_domain *build_sched_domain(struct sched_domain_topology_level *tl, in build_sched_domain() argument
2276 struct sched_domain *sd = sd_init(tl, cpu_map, child, cpu); in build_sched_domain()
2306 static bool topology_span_sane(struct sched_domain_topology_level *tl, in topology_span_sane() argument
2312 if (tl->flags & SDTL_OVERLAP) in topology_span_sane()
2330 if (!cpumask_equal(tl->mask(cpu), tl->mask(i)) && in topology_span_sane()
2331 cpumask_intersects(tl->mask(cpu), tl->mask(i))) in topology_span_sane()
2361 struct sched_domain_topology_level *tl; in build_sched_domains() local
2364 for_each_sd_topology(tl) { in build_sched_domains()
2366 if (WARN_ON(!topology_span_sane(tl, cpu_map, i))) in build_sched_domains()
2369 sd = build_sched_domain(tl, cpu_map, attr, sd, i); in build_sched_domains()
2373 if (tl == sched_domain_topology) in build_sched_domains()
2375 if (tl->flags & SDTL_OVERLAP) in build_sched_domains()