Lines Matching refs:tl

1556 sd_init(struct sched_domain_topology_level *tl,  in sd_init()  argument
1560 struct sd_data *sdd = &tl->data; in sd_init()
1569 sched_domains_curr_level = tl->numa_level; in sd_init()
1572 sd_weight = cpumask_weight(tl->mask(cpu)); in sd_init()
1574 if (tl->sd_flags) in sd_init()
1575 sd_flags = (*tl->sd_flags)(); in sd_init()
1607 .name = tl->name, in sd_init()
1612 cpumask_and(sd_span, cpu_map, tl->mask(cpu)); in sd_init()
1641 if (sched_domains_numa_distance[tl->numa_level] > node_reclaim_distance) { in sd_init()
1690 #define for_each_sd_topology(tl) \ argument
1691 for (tl = sched_domain_topology; tl->mask; tl++)
1693 void __init set_sched_topology(struct sched_domain_topology_level *tl) in set_sched_topology() argument
1698 sched_domain_topology = tl; in set_sched_topology()
1824 struct sched_domain_topology_level *tl; in sched_init_numa() local
1929 tl = kzalloc((i + nr_levels + 1) * in sched_init_numa()
1931 if (!tl) in sched_init_numa()
1938 tl[i] = sched_domain_topology[i]; in sched_init_numa()
1943 tl[i++] = (struct sched_domain_topology_level){ in sched_init_numa()
1953 tl[i] = (struct sched_domain_topology_level){ in sched_init_numa()
1963 sched_domain_topology = tl; in sched_init_numa()
2183 struct sched_domain_topology_level *tl; in __sdt_alloc() local
2186 for_each_sd_topology(tl) { in __sdt_alloc()
2187 struct sd_data *sdd = &tl->data; in __sdt_alloc()
2252 struct sched_domain_topology_level *tl; in __sdt_free() local
2255 for_each_sd_topology(tl) { in __sdt_free()
2256 struct sd_data *sdd = &tl->data; in __sdt_free()
2286 static struct sched_domain *build_sched_domain(struct sched_domain_topology_level *tl, in build_sched_domain() argument
2290 struct sched_domain *sd = sd_init(tl, cpu_map, child, cpu); in build_sched_domain()
2320 static bool topology_span_sane(struct sched_domain_topology_level *tl, in topology_span_sane() argument
2326 if (tl->flags & SDTL_OVERLAP) in topology_span_sane()
2344 if (!cpumask_equal(tl->mask(cpu), tl->mask(i)) && in topology_span_sane()
2345 cpumask_intersects(tl->mask(cpu), tl->mask(i))) in topology_span_sane()
2375 struct sched_domain_topology_level *tl; in build_sched_domains() local
2378 for_each_sd_topology(tl) { in build_sched_domains()
2380 if (WARN_ON(!topology_span_sane(tl, cpu_map, i))) in build_sched_domains()
2383 sd = build_sched_domain(tl, cpu_map, attr, sd, i); in build_sched_domains()
2387 if (tl == sched_domain_topology) in build_sched_domains()
2389 if (tl->flags & SDTL_OVERLAP) in build_sched_domains()