Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 127665
b: refs/heads/master
c: c555e52
h: refs/heads/master
i:
  127663: 650b05c
v: v3
  • Loading branch information
Dave Hansen authored and Benjamin Herrenschmidt committed Jan 8, 2009
1 parent 8df2760 commit 6c869dc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 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: afcb065450913745027169d906b9afc8294f7007
refs/heads/master: c555e520ef794a94dc36a8ded93ece6369ff7ca0
12 changes: 10 additions & 2 deletions trunk/arch/powerpc/mm/numa.c
Original file line number Diff line number Diff line change
Expand Up @@ -840,8 +840,16 @@ static void __init *careful_allocation(int nid, unsigned long size,
size, nid);

/*
* If the memory came from a previously allocated node, we must
* retry with the bootmem allocator.
* We initialize the nodes in numeric order: 0, 1, 2...
* and hand over control from the LMB allocator to the
* bootmem allocator. If this function is called for
* node 5, then we know that all nodes <5 are using the
* bootmem allocator instead of the LMB allocator.
*
* So, check the nid from which this allocation came
* and double check to see if we need to use bootmem
* instead of the LMB. We don't free the LMB memory
* since it would be useless.
*/
new_nid = early_pfn_to_nid(ret >> PAGE_SHIFT);
if (new_nid < nid) {
Expand Down

0 comments on commit 6c869dc

Please sign in to comment.