Lines Matching refs:dist
1346 int dist = node_distance(nid, node); in score_nearby_nodes() local
1352 if (dist == sched_max_numa_distance || node == nid) in score_nearby_nodes()
1363 dist >= maxdist) in score_nearby_nodes()
1381 faults *= (sched_max_numa_distance - dist); in score_nearby_nodes()
1398 int dist) in task_weight() argument
1411 faults += score_nearby_nodes(p, nid, dist, true); in task_weight()
1417 int dist) in group_weight() argument
1431 faults += score_nearby_nodes(p, nid, dist, false); in group_weight()
1562 int dist; member
1759 int dist = env->dist; in task_numa_compare() local
1814 imp = taskimp + task_weight(cur, env->src_nid, dist) - in task_numa_compare()
1815 task_weight(cur, env->dst_nid, dist); in task_numa_compare()
1828 imp += group_weight(cur, env->src_nid, dist) - in task_numa_compare()
1829 group_weight(cur, env->dst_nid, dist); in task_numa_compare()
1831 imp += task_weight(cur, env->src_nid, dist) - in task_numa_compare()
1832 task_weight(cur, env->dst_nid, dist); in task_numa_compare()
2007 int nid, ret, dist; in task_numa_migrate() local
2035 dist = env.dist = node_distance(env.src_nid, env.dst_nid); in task_numa_migrate()
2036 taskweight = task_weight(p, env.src_nid, dist); in task_numa_migrate()
2037 groupweight = group_weight(p, env.src_nid, dist); in task_numa_migrate()
2039 taskimp = task_weight(p, env.dst_nid, dist) - taskweight; in task_numa_migrate()
2040 groupimp = group_weight(p, env.dst_nid, dist) - groupweight; in task_numa_migrate()
2059 dist = node_distance(env.src_nid, env.dst_nid); in task_numa_migrate()
2061 dist != env.dist) { in task_numa_migrate()
2062 taskweight = task_weight(p, env.src_nid, dist); in task_numa_migrate()
2063 groupweight = group_weight(p, env.src_nid, dist); in task_numa_migrate()
2067 taskimp = task_weight(p, nid, dist) - taskweight; in task_numa_migrate()
2068 groupimp = group_weight(p, nid, dist) - groupweight; in task_numa_migrate()
2072 env.dist = dist; in task_numa_migrate()
2296 int dist; in preferred_group_nid() local
2311 dist = sched_max_numa_distance; in preferred_group_nid()
2314 score = group_weight(p, node, dist); in preferred_group_nid()
2333 for (dist = sched_max_numa_distance; dist > LOCAL_DISTANCE; dist--) { in preferred_group_nid()
2339 if (!find_numa_distance(dist)) in preferred_group_nid()
2349 if (node_distance(a, b) < dist) { in preferred_group_nid()
8098 int src_nid, dst_nid, dist; in migrate_degrades_locality() local
8128 dist = node_distance(src_nid, dst_nid); in migrate_degrades_locality()
8130 src_weight = group_weight(p, src_nid, dist); in migrate_degrades_locality()
8131 dst_weight = group_weight(p, dst_nid, dist); in migrate_degrades_locality()
8133 src_weight = task_weight(p, src_nid, dist); in migrate_degrades_locality()
8134 dst_weight = task_weight(p, dst_nid, dist); in migrate_degrades_locality()