|
@@ -235,28 +235,6 @@ void __init memory_present(int nid, unsigned long start, unsigned long end)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-/*
|
|
|
- * Only used by the i386 NUMA architecures, but relatively
|
|
|
- * generic code.
|
|
|
- */
|
|
|
-unsigned long __init node_memmap_size_bytes(int nid, unsigned long start_pfn,
|
|
|
- unsigned long end_pfn)
|
|
|
-{
|
|
|
- unsigned long pfn;
|
|
|
- unsigned long nr_pages = 0;
|
|
|
-
|
|
|
- mminit_validate_memmodel_limits(&start_pfn, &end_pfn);
|
|
|
- for (pfn = start_pfn; pfn < end_pfn; pfn += PAGES_PER_SECTION) {
|
|
|
- if (nid != early_pfn_to_nid(pfn))
|
|
|
- continue;
|
|
|
-
|
|
|
- if (pfn_present(pfn))
|
|
|
- nr_pages += PAGES_PER_SECTION;
|
|
|
- }
|
|
|
-
|
|
|
- return nr_pages * sizeof(struct page);
|
|
|
-}
|
|
|
-
|
|
|
/*
|
|
|
* Subtle, we encode the real pfn into the mem_map such that
|
|
|
* the identity pfn - section_mem_map will return the actual
|