From 871bc8bb235e575159b835b7e0009898f8d00a56 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Fri, 30 Sep 2005 12:38:27 -0700 Subject: [PATCH] --- yaml --- r: 9502 b: refs/heads/master c: 6e3254c4e2927c117044a02acf5f5b56e1373053 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/mm/bootmem.c | 14 +++----------- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/[refs] b/[refs] index 7e1dfbcb76e3..4ba6f96bda11 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 13402580021a52e49c6d1068ff28ade4d5a175f1 +refs/heads/master: 6e3254c4e2927c117044a02acf5f5b56e1373053 diff --git a/trunk/mm/bootmem.c b/trunk/mm/bootmem.c index 8ec4e4c2a179..c1330cc19783 100644 --- a/trunk/mm/bootmem.c +++ b/trunk/mm/bootmem.c @@ -61,17 +61,9 @@ static unsigned long __init init_bootmem_core (pg_data_t *pgdat, { bootmem_data_t *bdata = pgdat->bdata; unsigned long mapsize = ((end - start)+7)/8; - 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; - } + + pgdat->pgdat_next = pgdat_list; + pgdat_list = pgdat; mapsize = ALIGN(mapsize, sizeof(long)); bdata->node_bootmem_map = phys_to_virt(mapstart << PAGE_SHIFT);