Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 74377
b: refs/heads/master
c: e0dc3a5
h: refs/heads/master
i:
  74375: 973f560
v: v3
  • Loading branch information
KAMEZAWA Hiroyuki authored and Linus Torvalds committed Nov 29, 2007
1 parent 9ec2516 commit 399e33c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 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: 164e217cec236f84718676543659181ea300a862
refs/heads/master: e0dc3a53def41efeabb3f39ad8e9f67e81ca1025
12 changes: 11 additions & 1 deletion trunk/mm/sparse-vmemmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,16 @@
* or to back the page tables that are used to create the mapping.
* Uses the main allocators if they are available, else bootmem.
*/

static void * __init_refok __earlyonly_bootmem_alloc(int node,
unsigned long size,
unsigned long align,
unsigned long goal)
{
return __alloc_bootmem_node(NODE_DATA(node), size, align, goal);
}


void * __meminit vmemmap_alloc_block(unsigned long size, int node)
{
/* If the main allocator is up use that, fallback to bootmem. */
Expand All @@ -44,7 +54,7 @@ void * __meminit vmemmap_alloc_block(unsigned long size, int node)
return page_address(page);
return NULL;
} else
return __alloc_bootmem_node(NODE_DATA(node), size, size,
return __earlyonly_bootmem_alloc(node, size, size,
__pa(MAX_DMA_ADDRESS));
}

Expand Down

0 comments on commit 399e33c

Please sign in to comment.