mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 16:54:21 +00:00 
			
		
		
		
	mm/MIPS: prepare for killing free_all_bootmem_node()
Prepare for killing free_all_bootmem_node() by using free_all_bootmem(). Signed-off-by: Jiang Liu <jiang.liu@huawei.com> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: Minchan Kim <minchan@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
		
							parent
							
								
									5ad62f24ba
								
							
						
					
					
						commit
						629e7b4c80
					
				
					 1 changed files with 1 additions and 11 deletions
				
			
		|  | @ -477,18 +477,8 @@ void __init paging_init(void) | |||
| 
 | ||||
| void __init mem_init(void) | ||||
| { | ||||
| 	unsigned node; | ||||
| 
 | ||||
| 	high_memory = (void *) __va(get_num_physpages() << PAGE_SHIFT); | ||||
| 
 | ||||
| 	for_each_online_node(node) { | ||||
| 		/*
 | ||||
| 		 * This will free up the bootmem, ie, slot 0 memory. | ||||
| 		 */ | ||||
| 		free_all_bootmem_node(NODE_DATA(node)); | ||||
| 	} | ||||
| 
 | ||||
| 	free_all_bootmem(); | ||||
| 	setup_zero_pages();	/* This comes from node 0 */ | ||||
| 
 | ||||
| 	mem_init_print_info(NULL); | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Jiang Liu
						Jiang Liu