diff options
author | Tejun Heo <[email protected]> | 2011-02-16 17:11:10 +0100 |
---|---|---|
committer | Tejun Heo <[email protected]> | 2011-02-16 17:11:10 +0100 |
commit | 775ee85d7bff8ce7c7eccde90eda400658b650a3 (patch) | |
tree | 46dc2a5582dd7b87cf9422ac1f8e8ee8c9b67d20 /drivers/mtd/lpddr/lpddr_cmds.c | |
parent | c88aea7a70b0f014f98c695069ba91abc9e9b9a4 (diff) |
x86-64, NUMA: Wrap node ID during emulation
Both emulation layout functions - split_nodes[_size]_interleave() -
didn't wrap emulated nid while laying out the fake nodes and tried to
avoid interating over the specified number of nodes, which is fragile.
Now that the emulation code generates numa_meminfo, the node memblks
don't need to be consecutive and emulated node IDs can simply wrap.
This makes the code more robust and is necessary for updates to better
handle the cases where the physical nodes are interleaved.
Signed-off-by: Tejun Heo <[email protected]>
Cc: Yinghai Lu <[email protected]>
Cc: Brian Gerst <[email protected]>
Cc: Cyrill Gorcunov <[email protected]>
Cc: Shaohui Zheng <[email protected]>
Cc: David Rientjes <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: H. Peter Anvin <[email protected]>
Diffstat (limited to 'drivers/mtd/lpddr/lpddr_cmds.c')
0 files changed, 0 insertions, 0 deletions