Lines Matching full:distance
33 * numa_reset_distance - Reset NUMA distance table
66 pr_warn("Warning: can't allocate distance table!\n"); in numa_alloc_distance()
79 printk(KERN_DEBUG "NUMA: Initialized distance table, cnt=%d\n", cnt); in numa_alloc_distance()
85 * numa_set_distance - Set NUMA distance from one NUMA to another
86 * @from: the 'from' node to set distance
87 * @to: the 'to' node to set distance
88 * @distance: NUMA distance
90 * Set the distance from node @from to @to to @distance. If distance table
95 * calls are ignored until the distance table is reset with
99 * at the time of table creation or @distance doesn't make sense, the call
103 void __init numa_set_distance(int from, int to, int distance) in numa_set_distance() argument
110 pr_warn_once("Warning: node ids are out of bound, from=%d to=%d distance=%d\n", in numa_set_distance()
111 from, to, distance); in numa_set_distance()
115 if ((u8)distance != distance || in numa_set_distance()
116 (from == to && distance != LOCAL_DISTANCE)) { in numa_set_distance()
117 pr_warn_once("Warning: invalid distance parameter, from=%d to=%d distance=%d\n", in numa_set_distance()
118 from, to, distance); in numa_set_distance()
122 numa_distance[from * numa_distance_cnt + to] = distance; in numa_set_distance()