File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -108,9 +108,8 @@ static void __init paging_init(void)
108
108
109
109
void __init setup_memory (void )
110
110
{
111
- struct memblock_region * reg ;
112
-
113
111
#ifndef CONFIG_MMU
112
+ struct memblock_region * reg ;
114
113
u32 kernel_align_start , kernel_align_size ;
115
114
116
115
/* Find main memory where is the kernel */
@@ -164,17 +163,6 @@ void __init setup_memory(void)
164
163
pr_info ("%s: max_low_pfn: %#lx\n" , __func__ , max_low_pfn );
165
164
pr_info ("%s: max_pfn: %#lx\n" , __func__ , max_pfn );
166
165
167
- /* Add active regions with valid PFNs */
168
- for_each_memblock (memory , reg ) {
169
- unsigned long start_pfn , end_pfn ;
170
-
171
- start_pfn = memblock_region_memory_base_pfn (reg );
172
- end_pfn = memblock_region_memory_end_pfn (reg );
173
- memblock_set_node (start_pfn << PAGE_SHIFT ,
174
- (end_pfn - start_pfn ) << PAGE_SHIFT ,
175
- & memblock .memory , 0 );
176
- }
177
-
178
166
paging_init ();
179
167
}
180
168
You can’t perform that action at this time.
0 commit comments