Skip to contentSkip to conversation

Remove pgdat list ver.2 [2/2]

PATCH New Yasunori Goto 1 participant 1 message Sep 30, 2005 Memory management

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Remove pgdat list ver.2 [2/2]

-------------------
This is for ia64. Pgdat insertion is not necessary.

Index: pgdat_link/arch/ia64/mm/discontig.c
=================================--- pgdat_link.orig/arch/ia64/mm/discontig.c 2005-09-30 19:04:10.070261497 +0900
+++ pgdat_link/arch/ia64/mm/discontig.c 2005-09-30 19:06:42.850533063 +0900
@@ -376,30 +376,6 @@ static void __init *memory_less_node_all
return ptr;
}

-/**
- * pgdat_insert - insert the pgdat into global pgdat_list
- * @pgdat: the pgdat for a node.
- */
-static void __init pgdat_insert(pg_data_t *pgdat) -{
- pg_data_t *prev = NULL, *next;
-
- for_each_pgdat(next)
- if (pgdat->node_id < next->node_id)
- break;
- else
- prev = next;
-
- if (prev) {
- prev->pgdat_next = pgdat;
- pgdat->pgdat_next = next;
- } else {
- pgdat->pgdat_next = pgdat_list;
- pgdat_list = pgdat;
- }
-
- return;
-}

/**
* memory_less_nodes - allocate and initialize CPU only nodes pernode
@@ -695,11 +671,5 @@ void __init paging_init(void)
pfn_offset, zholes_size);
}

- /*
- * Make memory less nodes become a member of the known nodes.
- */
- for_each_node_mask(node, memory_less_mask)
- pgdat_insert(mem_data[node].pgdat);
-
zero_page_memmap_ptr = virt_to_page(ia64_imva(empty_zero_page));
}

Signature · 1 line
Yasunori Goto