Lines Matching full:tl
1588 sd_init(struct sched_domain_topology_level *tl, in sd_init() argument
1592 struct sd_data *sdd = &tl->data; in sd_init()
1601 sched_domains_curr_level = tl->numa_level; in sd_init()
1604 sd_weight = cpumask_weight(tl->mask(cpu)); in sd_init()
1606 if (tl->sd_flags) in sd_init()
1607 sd_flags = (*tl->sd_flags)(); in sd_init()
1639 .name = tl->name, in sd_init()
1644 cpumask_and(sd_span, cpu_map, tl->mask(cpu)); in sd_init()
1673 if (sched_domains_numa_distance[tl->numa_level] > node_reclaim_distance) { in sd_init()
1722 #define for_each_sd_topology(tl) \ argument
1723 for (tl = sched_domain_topology; tl->mask; tl++)
1725 void __init set_sched_topology(struct sched_domain_topology_level *tl) in set_sched_topology() argument
1730 sched_domain_topology = tl; in set_sched_topology()
1856 struct sched_domain_topology_level *tl; in sched_init_numa() local
1961 tl = kzalloc((i + nr_levels + 1) * in sched_init_numa()
1963 if (!tl) in sched_init_numa()
1970 tl[i] = sched_domain_topology[i]; in sched_init_numa()
1975 tl[i++] = (struct sched_domain_topology_level){ in sched_init_numa()
1985 tl[i] = (struct sched_domain_topology_level){ in sched_init_numa()
1995 sched_domain_topology = tl; in sched_init_numa()
2224 struct sched_domain_topology_level *tl; in __sdt_alloc() local
2227 for_each_sd_topology(tl) { in __sdt_alloc()
2228 struct sd_data *sdd = &tl->data; in __sdt_alloc()
2293 struct sched_domain_topology_level *tl; in __sdt_free() local
2296 for_each_sd_topology(tl) { in __sdt_free()
2297 struct sd_data *sdd = &tl->data; in __sdt_free()
2327 static struct sched_domain *build_sched_domain(struct sched_domain_topology_level *tl, in build_sched_domain() argument
2331 struct sched_domain *sd = sd_init(tl, cpu_map, child, cpu); in build_sched_domain()
2361 static bool topology_span_sane(struct sched_domain_topology_level *tl, in topology_span_sane() argument
2367 if (tl->flags & SDTL_OVERLAP) in topology_span_sane()
2383 if (!cpumask_equal(tl->mask(cpu), tl->mask(i)) && in topology_span_sane()
2384 cpumask_intersects(tl->mask(cpu), tl->mask(i))) in topology_span_sane()
2415 struct sched_domain_topology_level *tl; in build_sched_domains() local
2418 for_each_sd_topology(tl) { in build_sched_domains()
2420 if (WARN_ON(!topology_span_sane(tl, cpu_map, i))) in build_sched_domains()
2423 sd = build_sched_domain(tl, cpu_map, attr, sd, i); in build_sched_domains()
2427 if (tl == sched_domain_topology) in build_sched_domains()
2429 if (tl->flags & SDTL_OVERLAP) in build_sched_domains()