Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 185143
b: refs/heads/master
c: 81d0d95
h: refs/heads/master
i:
  185141: 3ff4ed2
  185139: b43c623
  185135: d877f1e
v: v3
  • Loading branch information
Yinghai Lu authored and H. Peter Anvin committed Mar 2, 2010
1 parent 1dab01d commit 6ac0a80
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 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: fb90ef93df654f2678933efbbf864adac0ae490e
refs/heads/master: 81d0d950e5037a26b71e568ff235ff9e998f4ab3
11 changes: 7 additions & 4 deletions trunk/mm/sparse.c
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,7 @@ void __init sparse_mem_maps_populate_node(struct page **map_map,
}
#endif /* !CONFIG_SPARSEMEM_VMEMMAP */

#ifdef CONFIG_SPARSEMEM_ALLOC_MEM_MAP_TOGETHER
static void __init sparse_early_mem_maps_alloc_node(struct page **map_map,
unsigned long pnum_begin,
unsigned long pnum_end,
Expand All @@ -447,8 +448,7 @@ static void __init sparse_early_mem_maps_alloc_node(struct page **map_map,
sparse_mem_maps_populate_node(map_map, pnum_begin, pnum_end,
map_count, nodeid);
}

#ifndef CONFIG_SPARSEMEM_ALLOC_MEM_MAP_TOGETHER
#else
static struct page __init *sparse_early_mem_map_alloc(unsigned long pnum)
{
struct page *map;
Expand Down Expand Up @@ -478,14 +478,17 @@ void __init sparse_init(void)
{
unsigned long pnum;
struct page *map;
struct page **map_map;
unsigned long *usemap;
unsigned long **usemap_map;
int size, size2;
int size;
int nodeid_begin = 0;
unsigned long pnum_begin = 0;
unsigned long usemap_count;
#ifdef CONFIG_SPARSEMEM_ALLOC_MEM_MAP_TOGETHER
unsigned long map_count;
int size2;
struct page **map_map;
#endif

/*
* map is using big page (aka 2M in x86 64 bit)
Expand Down

0 comments on commit 6ac0a80

Please sign in to comment.