Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 234863
b: refs/heads/master
c: 8968dab
h: refs/heads/master
i:
  234861: b310a2c
  234859: 78a6c5b
  234855: f6edcc1
  234847: 5ce8d3b
v: v3
  • Loading branch information
Tejun Heo committed Feb 16, 2011
1 parent 0429048 commit cba4426
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5d371b08fea80c4fb7450d31e5a4e35b438ef850
refs/heads/master: 8968dab8ad90ea16ef92f2406868354ea3ab6bb9
14 changes: 7 additions & 7 deletions trunk/arch/x86/mm/numa_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,7 @@ static int __init populate_memnodemap(const struct bootnode *nodes,
do {
if (memnodemap[addr >> shift] != NUMA_NO_NODE)
return -1;

if (!nodeids)
memnodemap[addr >> shift] = i;
else
memnodemap[addr >> shift] = nodeids[i];

memnodemap[addr >> shift] = nodeids[i];
addr += (1UL << shift);
} while (addr < end);
res = 1;
Expand Down Expand Up @@ -706,6 +701,7 @@ static int __init split_nodes_size_interleave(u64 addr, u64 max_addr, u64 size)
static int __init numa_emulation(unsigned long start_pfn,
unsigned long last_pfn, int acpi, int amd)
{
static int nodeid[NR_NODE_MEMBLKS] __initdata;
u64 addr = start_pfn << PAGE_SHIFT;
u64 max_addr = last_pfn << PAGE_SHIFT;
int num_nodes;
Expand All @@ -730,7 +726,11 @@ static int __init numa_emulation(unsigned long start_pfn,

if (num_nodes < 0)
return num_nodes;
memnode_shift = compute_hash_shift(nodes, num_nodes, NULL);

for (i = 0; i < ARRAY_SIZE(nodeid); i++)
nodeid[i] = i;

memnode_shift = compute_hash_shift(nodes, num_nodes, nodeid);
if (memnode_shift < 0) {
memnode_shift = 0;
printk(KERN_ERR "No NUMA hash function found. NUMA emulation "
Expand Down

0 comments on commit cba4426

Please sign in to comment.