diff options
| author | David Rientjes <[email protected]> | 2010-02-15 21:43:25 +0000 |
|---|---|---|
| committer | H. Peter Anvin <[email protected]> | 2010-02-15 22:34:04 +0000 |
| commit | 68fd111e02b979876359c7b471a8bcbca0628b75 (patch) | |
| tree | 6b8cd2a098fd5bbe6ced2a7c313c52ae3bf48d59 /lib/debugobjects.c | |
| parent | x86, acpi: Map hotadded cpu to correct node. (diff) | |
| download | kernel-68fd111e02b979876359c7b471a8bcbca0628b75.tar.gz kernel-68fd111e02b979876359c7b471a8bcbca0628b75.zip | |
x86, numa: Fix numa emulation calculation of big nodes
numa=fake=N uses split_nodes_interleave() to partition the system into N
fake nodes. Each node size must have be a multiple of
FAKE_NODE_MIN_SIZE, otherwise it is possible to get strange alignments.
Because of this, the remaining memory from each node when rounded to
FAKE_NODE_MIN_SIZE is consolidated into a number of "big nodes" that are
bigger than the rest.
The calculation of the number of big nodes is incorrect since it is using
a logical AND operator when it should be multiplying the rounded-off
portion of each node with N.
Signed-off-by: David Rientjes <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: H. Peter Anvin <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions
