Lines Matching full:distance
271 * Create a new NUMA distance table.
291 pr_debug("Initialized distance table, cnt=%d\n", numa_distance_cnt); in numa_alloc_distance()
297 * numa_set_distance() - Set inter node NUMA distance from node to node.
298 * @from: the 'from' node to set distance
299 * @to: the 'to' node to set distance
300 * @distance: NUMA distance
302 * Set the distance from node @from to @to to @distance.
303 * If distance table doesn't exist, a warning is printed.
306 * or @distance doesn't make sense, the call is ignored.
308 void __init numa_set_distance(int from, int to, int distance) in numa_set_distance() argument
311 pr_warn_once("Warning: distance table not allocated yet\n"); in numa_set_distance()
317 pr_warn_once("Warning: node ids are out of bound, from=%d to=%d distance=%d\n", in numa_set_distance()
318 from, to, distance); in numa_set_distance()
322 if ((u8)distance != distance || in numa_set_distance()
323 (from == to && distance != LOCAL_DISTANCE)) { in numa_set_distance()
324 pr_warn_once("Warning: invalid distance parameter, from=%d to=%d distance=%d\n", in numa_set_distance()
325 from, to, distance); in numa_set_distance()
329 numa_distance[from * numa_distance_cnt + to] = distance; in numa_set_distance()
333 * Return NUMA distance @from to @to