Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 8585
b: refs/heads/master
c: 5d3d0f7
h: refs/heads/master
i:
  8583: aa913f8
v: v3
  • Loading branch information
Andi Kleen authored and Linus Torvalds committed Sep 12, 2005
1 parent 2d13e00 commit 74fbd36
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 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: 6142891a0c0209c91aa4a98f725de0d6e2ed4918
refs/heads/master: 5d3d0f7704ed0bc7eaca0501eeae3e5da1ea6c87
14 changes: 11 additions & 3 deletions trunk/mm/bootmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,17 @@ static unsigned long __init init_bootmem_core (pg_data_t *pgdat,
{
bootmem_data_t *bdata = pgdat->bdata;
unsigned long mapsize = ((end - start)+7)/8;

pgdat->pgdat_next = pgdat_list;
pgdat_list = pgdat;
static struct pglist_data *pgdat_last;

pgdat->pgdat_next = NULL;
/* Add new nodes last so that bootmem always starts
searching in the first nodes, not the last ones */
if (pgdat_last)
pgdat_last->pgdat_next = pgdat;
else {
pgdat_list = pgdat;
pgdat_last = pgdat;
}

mapsize = ALIGN(mapsize, sizeof(long));
bdata->node_bootmem_map = phys_to_virt(mapstart << PAGE_SHIFT);
Expand Down

0 comments on commit 74fbd36

Please sign in to comment.