diff options
author | Yinghai Lu <yhlu.kernel@gmail.com> | 2008-06-16 23:10:55 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-08 06:48:27 -0400 |
commit | d52d53b8a5b258bfaab9223a5e7284fcfdd48577 (patch) | |
tree | 8871bb322bdb1b31546eaa130e0017a588bbceab /mm/page_alloc.c | |
parent | 1ea598c29748a559a0086a84a016886d786e6272 (diff) |
RFC x86: try to remove arch_get_ram_range
want to remove arch_get_ram_range, and use early_node_map instead.
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r-- | mm/page_alloc.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 41c6e3aa059f..e25b6b24f844 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -2932,10 +2932,14 @@ void __init free_bootmem_with_active_regions(int nid, | |||
2932 | void __init work_with_active_regions(int nid, work_fn_t work_fn, void *data) | 2932 | void __init work_with_active_regions(int nid, work_fn_t work_fn, void *data) |
2933 | { | 2933 | { |
2934 | int i; | 2934 | int i; |
2935 | int ret; | ||
2935 | 2936 | ||
2936 | for_each_active_range_index_in_nid(i, nid) | 2937 | for_each_active_range_index_in_nid(i, nid) { |
2937 | work_fn(early_node_map[i].start_pfn, early_node_map[i].end_pfn, | 2938 | ret = work_fn(early_node_map[i].start_pfn, |
2938 | data); | 2939 | early_node_map[i].end_pfn, data); |
2940 | if (ret) | ||
2941 | break; | ||
2942 | } | ||
2939 | } | 2943 | } |
2940 | /** | 2944 | /** |
2941 | * sparse_memory_present_with_active_regions - Call memory_present for each active range | 2945 | * sparse_memory_present_with_active_regions - Call memory_present for each active range |