Skip to content

Commit

Permalink
mm: Kill NO_BOOTMEM version free_all_bootmem_node()
Browse files Browse the repository at this point in the history
Now NO_BOOTMEM version free_all_bootmem_node() does not really
do free_bootmem at all, and it only call register_page_bootmem_info_node
for online nodes instead.

That is confusing.

We can kill that free_all_bootmem_node(), after we kill two callings
in x86 and sparc.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Link: http://lkml.kernel.org/r/1353123563-3103-46-git-send-email-yinghai@kernel.org
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
  • Loading branch information
Yinghai Lu authored and H. Peter Anvin committed Nov 17, 2012
1 parent 961f8fa commit 600cc5b
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions mm/nobootmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,20 +137,6 @@ unsigned long __init free_low_memory_core_early(int nodeid)
return count;
}

/**
* free_all_bootmem_node - release a node's free pages to the buddy allocator
* @pgdat: node to be released
*
* Returns the number of pages actually released.
*/
unsigned long __init free_all_bootmem_node(pg_data_t *pgdat)
{
register_page_bootmem_info_node(pgdat);

/* free_low_memory_core_early(MAX_NUMNODES) will be called later */
return 0;
}

/**
* free_all_bootmem - release free pages to the buddy allocator
*
Expand Down

0 comments on commit 600cc5b

Please sign in to comment.