Lines Matching full:distance
274 * Create a new NUMA distance table.
299 pr_debug("Initialized distance table, cnt=%d\n", numa_distance_cnt); in numa_alloc_distance()
305 * numa_set_distance() - Set inter node NUMA distance from node to node.
306 * @from: the 'from' node to set distance
307 * @to: the 'to' node to set distance
308 * @distance: NUMA distance
310 * Set the distance from node @from to @to to @distance.
311 * If distance table doesn't exist, a warning is printed.
314 * or @distance doesn't make sense, the call is ignored.
316 void __init numa_set_distance(int from, int to, int distance) in numa_set_distance() argument
319 pr_warn_once("Warning: distance table not allocated yet\n"); in numa_set_distance()
325 pr_warn_once("Warning: node ids are out of bound, from=%d to=%d distance=%d\n", in numa_set_distance()
326 from, to, distance); in numa_set_distance()
330 if ((u8)distance != distance || in numa_set_distance()
331 (from == to && distance != LOCAL_DISTANCE)) { in numa_set_distance()
332 pr_warn_once("Warning: invalid distance parameter, from=%d to=%d distance=%d\n", in numa_set_distance()
333 from, to, distance); in numa_set_distance()
337 numa_distance[from * numa_distance_cnt + to] = distance; in numa_set_distance()
341 * Return NUMA distance @from to @to