mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
mm: nobootmem: move the comment of free_all_bootmem
Commitb4def3509d("mm, nobootmem: clean-up of free_low_memory_core_early()") removed the unnecessary nodeid argument, after that, this comment becomes more confused. We should move it to the right place. Fixes:b4def3509d("mm, nobootmem: clean-up of free_low_memory_core_early()") Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Wanlong Gao <[email protected]> Cc: Joonsoo Kim <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
19938e350a
commit
914a051654
1 changed files with 5 additions and 5 deletions
|
|
@ -137,6 +137,11 @@ static unsigned long __init free_low_memory_core_early(void)
|
|||
for_each_reserved_mem_region(i, &start, &end)
|
||||
reserve_bootmem_region(start, end);
|
||||
|
||||
/*
|
||||
* We need to use NUMA_NO_NODE instead of NODE_DATA(0)->node_id
|
||||
* because in some case like Node0 doesn't have RAM installed
|
||||
* low ram will be on Node1
|
||||
*/
|
||||
for_each_free_mem_range(i, NUMA_NO_NODE, MEMBLOCK_NONE, &start, &end,
|
||||
NULL)
|
||||
count += __free_memory_core(start, end);
|
||||
|
|
@ -194,11 +199,6 @@ unsigned long __init free_all_bootmem(void)
|
|||
|
||||
reset_all_zones_managed_pages();
|
||||
|
||||
/*
|
||||
* We need to use NUMA_NO_NODE instead of NODE_DATA(0)->node_id
|
||||
* because in some case like Node0 doesn't have RAM installed
|
||||
* low ram will be on Node1
|
||||
*/
|
||||
pages = free_low_memory_core_early();
|
||||
totalram_pages += pages;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue