Lines Matching refs:distance
349 * numa_reset_distance - Reset NUMA distance table
384 pr_warn("Warning: can't allocate distance table!\n");
398 printk(KERN_DEBUG "NUMA: Initialized distance table, cnt=%d\n", cnt);
404 * numa_set_distance - Set NUMA distance from one NUMA to another
405 * @from: the 'from' node to set distance
406 * @to: the 'to' node to set distance
407 * @distance: NUMA distance
409 * Set the distance from node @from to @to to @distance. If distance table
414 * calls are ignored until the distance table is reset with
418 * at the time of table creation or @distance doesn't make sense, the call
422 void __init numa_set_distance(int from, int to, int distance)
429 pr_warn_once("Warning: node ids are out of bound, from=%d to=%d distance=%d\n",
430 from, to, distance);
434 if ((u8)distance != distance ||
435 (from == to && distance != LOCAL_DISTANCE)) {
436 pr_warn_once("Warning: invalid distance parameter, from=%d to=%d distance=%d\n",
437 from, to, distance);
441 numa_distance[from * numa_distance_cnt + to] = distance;