Lines Matching refs:tl
1540 sd_init(struct sched_domain_topology_level *tl, in sd_init() argument
1544 struct sd_data *sdd = &tl->data; in sd_init()
1553 sched_domains_curr_level = tl->numa_level; in sd_init()
1556 sd_weight = cpumask_weight(tl->mask(cpu)); in sd_init()
1558 if (tl->sd_flags) in sd_init()
1559 sd_flags = (*tl->sd_flags)(); in sd_init()
1591 .name = tl->name, in sd_init()
1596 cpumask_and(sd_span, cpu_map, tl->mask(cpu)); in sd_init()
1625 if (sched_domains_numa_distance[tl->numa_level] > node_reclaim_distance) { in sd_init()
1674 #define for_each_sd_topology(tl) \ argument
1675 for (tl = sched_domain_topology; tl->mask; tl++)
1677 void set_sched_topology(struct sched_domain_topology_level *tl) in set_sched_topology() argument
1682 sched_domain_topology = tl; in set_sched_topology()
1808 struct sched_domain_topology_level *tl; in sched_init_numa() local
1913 tl = kzalloc((i + nr_levels + 1) * in sched_init_numa()
1915 if (!tl) in sched_init_numa()
1922 tl[i] = sched_domain_topology[i]; in sched_init_numa()
1927 tl[i++] = (struct sched_domain_topology_level){ in sched_init_numa()
1937 tl[i] = (struct sched_domain_topology_level){ in sched_init_numa()
1947 sched_domain_topology = tl; in sched_init_numa()
2074 struct sched_domain_topology_level *tl; in __sdt_alloc() local
2077 for_each_sd_topology(tl) { in __sdt_alloc()
2078 struct sd_data *sdd = &tl->data; in __sdt_alloc()
2143 struct sched_domain_topology_level *tl; in __sdt_free() local
2146 for_each_sd_topology(tl) { in __sdt_free()
2147 struct sd_data *sdd = &tl->data; in __sdt_free()
2177 static struct sched_domain *build_sched_domain(struct sched_domain_topology_level *tl, in build_sched_domain() argument
2181 struct sched_domain *sd = sd_init(tl, cpu_map, child, cpu); in build_sched_domain()
2211 static bool topology_span_sane(struct sched_domain_topology_level *tl, in topology_span_sane() argument
2217 if (tl->flags & SDTL_OVERLAP) in topology_span_sane()
2235 if (!cpumask_equal(tl->mask(cpu), tl->mask(i)) && in topology_span_sane()
2236 cpumask_intersects(tl->mask(cpu), tl->mask(i))) in topology_span_sane()
2266 struct sched_domain_topology_level *tl; in build_sched_domains() local
2269 for_each_sd_topology(tl) { in build_sched_domains()
2271 if (WARN_ON(!topology_span_sane(tl, cpu_map, i))) in build_sched_domains()
2274 sd = build_sched_domain(tl, cpu_map, attr, sd, i); in build_sched_domains()
2278 if (tl == sched_domain_topology) in build_sched_domains()
2280 if (tl->flags & SDTL_OVERLAP) in build_sched_domains()