mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
x86-64, NUMA: Better explain numa_distance handling
Handling of out-of-bounds distances and allocation failure can use better documentation. Add it. Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Yinghai Lu <yinghai@kernel.org> Acked-by: David Rientjes <rientjes@google.com>
This commit is contained in:
parent
ce0033307f
commit
eb8c1e2c83
2 changed files with 15 additions and 2 deletions
|
@ -379,7 +379,11 @@ void __init numa_emulation(struct numa_meminfo *numa_meminfo, int numa_dist_cnt)
|
|||
if (emu_nid_to_phys[i] == NUMA_NO_NODE)
|
||||
emu_nid_to_phys[i] = 0;
|
||||
|
||||
/* transform distance table */
|
||||
/*
|
||||
* Transform distance table. numa_set_distance() ignores all
|
||||
* out-of-bound distances. Just call it for every possible node
|
||||
* combination.
|
||||
*/
|
||||
numa_reset_distance();
|
||||
for (i = 0; i < MAX_NUMNODES; i++) {
|
||||
for (j = 0; j < MAX_NUMNODES; j++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue