free_area_init_node() is only used by x86 to initialize a memory-less nodes. Make its name reflect this and drop all the function parameters except node ID as they are anyway zero.
Showing the changes to include/linux (1 of 3 files). Show all
Unified · Split
| @@ -2329,8 +2329,7 @@ static inline spinlock_t *pud_lock(struct mm_struct *mm, pud_t *pud) · 2328 unmodified lines | |||
| 2329 | } | 2329 | } |
| 2330 | 2330 | ||
| 2331 | extern void __init pagecache_init(void); | 2331 | extern void __init pagecache_init(void); |
| 2332 | extern void __init free_area_init_node(int nid, unsigned long * zones_size, | 2332 | extern void __init free_area_init_memoryless_node(int nid); |
| 2333 | unsigned long zone_start_pfn, unsigned long *zholes_size); | ||
| 2334 | extern void free_initmem(void); | 2333 | extern void free_initmem(void); |
| 2335 | 2334 | ||
| 2336 | /* | 2335 | /* |
| @@ -2402,10 +2401,8 @@ static inline unsigned long get_num_physpages(void) · 65 unmodified lines | |||
| 2402 | 2401 | ||
| 2403 | /* | 2402 | /* |
| 2404 | * Using memblock node mappings, an architecture may initialise its | 2403 | * Using memblock node mappings, an architecture may initialise its |
| 2405 | * zones, allocate the backing mem_map and account for memory holes in a more | 2404 | * zones, allocate the backing mem_map and account for memory holes in an |
| 2406 | * architecture independent manner. This is a substitute for creating the | 2405 | * architecture independent manner. |
| 2407 | * zone_sizes[] and zholes_size[] arrays and passing them to | ||
| 2408 | * free_area_init_node() | ||
| 2409 | * | 2406 | * |
| 2410 | * An architecture is expected to register range of page frames backed by | 2407 | * An architecture is expected to register range of page frames backed by |
| 2411 | * physical memory with memblock_add[_node]() before calling | 2408 | * physical memory with memblock_add[_node]() before calling |