diff options
-rw-r--r-- | include/linux/mm.h | 2 | ||||
-rw-r--r-- | mm/page_alloc.c | 12 |
2 files changed, 0 insertions, 14 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index ce2b2a3b2876..b1c8318e32b8 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
@@ -1295,8 +1295,6 @@ extern void get_pfn_range_for_nid(unsigned int nid, | |||
1295 | extern unsigned long find_min_pfn_with_active_regions(void); | 1295 | extern unsigned long find_min_pfn_with_active_regions(void); |
1296 | extern void free_bootmem_with_active_regions(int nid, | 1296 | extern void free_bootmem_with_active_regions(int nid, |
1297 | unsigned long max_low_pfn); | 1297 | unsigned long max_low_pfn); |
1298 | int add_from_early_node_map(struct range *range, int az, | ||
1299 | int nr_range, int nid); | ||
1300 | extern void sparse_memory_present_with_active_regions(int nid); | 1298 | extern void sparse_memory_present_with_active_regions(int nid); |
1301 | 1299 | ||
1302 | #endif /* CONFIG_HAVE_MEMBLOCK_NODE_MAP */ | 1300 | #endif /* CONFIG_HAVE_MEMBLOCK_NODE_MAP */ |
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 40de6854b980..70bbd0f9c381 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -3940,18 +3940,6 @@ void __init free_bootmem_with_active_regions(int nid, unsigned long max_low_pfn) | |||
3940 | } | 3940 | } |
3941 | } | 3941 | } |
3942 | 3942 | ||
3943 | int __init add_from_early_node_map(struct range *range, int az, | ||
3944 | int nr_range, int nid) | ||
3945 | { | ||
3946 | unsigned long start_pfn, end_pfn; | ||
3947 | int i; | ||
3948 | |||
3949 | /* need to go over early_node_map to find out good range for node */ | ||
3950 | for_each_mem_pfn_range(i, nid, &start_pfn, &end_pfn, NULL) | ||
3951 | nr_range = add_range(range, az, nr_range, start_pfn, end_pfn); | ||
3952 | return nr_range; | ||
3953 | } | ||
3954 | |||
3955 | /** | 3943 | /** |
3956 | * sparse_memory_present_with_active_regions - Call memory_present for each active range | 3944 | * sparse_memory_present_with_active_regions - Call memory_present for each active range |
3957 | * @nid: The node to call memory_present for. If MAX_NUMNODES, all nodes will be used. | 3945 | * @nid: The node to call memory_present for. If MAX_NUMNODES, all nodes will be used. |