Lines Matching defs:distance
274 * Create a new NUMA distance table.
299 pr_debug("Initialized distance table, cnt=%d\n", numa_distance_cnt);
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)
319 pr_warn_once("Warning: distance table not allocated yet\n");
325 pr_warn_once("Warning: node ids are out of bound, from=%d to=%d distance=%d\n",
326 from, to, distance);
330 if ((u8)distance != distance ||
331 (from == to && distance != LOCAL_DISTANCE)) {
332 pr_warn_once("Warning: invalid distance parameter, from=%d to=%d distance=%d\n",
333 from, to, distance);
337 numa_distance[from * numa_distance_cnt + to] = distance;
341 * Return NUMA distance @from to @to