Lines Matching defs:distance
347 * numa_reset_distance - Reset NUMA distance table
382 pr_warn("Warning: can't allocate distance table!\n");
397 printk(KERN_DEBUG "NUMA: Initialized distance table, cnt=%d\n", cnt);
403 * numa_set_distance - Set NUMA distance from one NUMA to another
404 * @from: the 'from' node to set distance
405 * @to: the 'to' node to set distance
406 * @distance: NUMA distance
408 * Set the distance from node @from to @to to @distance. If distance table
413 * calls are ignored until the distance table is reset with
417 * at the time of table creation or @distance doesn't make sense, the call
421 void __init numa_set_distance(int from, int to, int distance)
428 pr_warn_once("Warning: node ids are out of bound, from=%d to=%d distance=%d\n",
429 from, to, distance);
433 if ((u8)distance != distance ||
434 (from == to && distance != LOCAL_DISTANCE)) {
435 pr_warn_once("Warning: invalid distance parameter, from=%d to=%d distance=%d\n",
436 from, to, distance);
440 numa_distance[from * numa_distance_cnt + to] = distance;