Searched refs:numa_distance (Results 1 - 2 of 2) sorted by relevance

/linux-master/drivers/base/
H A Darch_numa.c24 static u8 *numa_distance; variable
259 if (!numa_distance)
263 sizeof(numa_distance[0]);
265 memblock_free(numa_distance, size);
267 numa_distance = NULL;
278 size = nr_node_ids * nr_node_ids * sizeof(numa_distance[0]);
279 numa_distance = memblock_alloc(size, PAGE_SIZE);
280 if (WARN_ON(!numa_distance))
288 numa_distance[i * numa_distance_cnt + j] = i == j ?
310 if (!numa_distance) {
[all...]
/linux-master/arch/x86/mm/
H A Dnuma.c34 static u8 *numa_distance; variable
356 size_t size = numa_distance_cnt * numa_distance_cnt * sizeof(numa_distance[0]);
358 /* numa_distance could be 1LU marking allocation failure, test cnt */
360 memblock_free(numa_distance, size);
362 numa_distance = NULL; /* enable table creation */
379 size = cnt * cnt * sizeof(numa_distance[0]);
386 numa_distance = (void *)1LU;
390 numa_distance = __va(phys);
396 numa_distance[i * cnt + j] = i == j ?
424 if (!numa_distance
[all...]

Completed in 161 milliseconds