Skip to content

Commit

Permalink
mm/hexagon: prepare for removing num_physpages and simplify mem_init()
Browse files Browse the repository at this point in the history
Prepare for removing num_physpages and simplify mem_init().

Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Cc: Richard Kuo <rkuo@codeaurora.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
jiangliu authored and torvalds committed Jul 3, 2013
1 parent 27a5970 commit 5dc355c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions arch/hexagon/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@ void __init mem_init(void)
{
/* No idea where this is actually declared. Seems to evade LXR. */
free_all_bootmem();
num_physpages = bootmem_lastpg-ARCH_PFN_OFFSET;

printk(KERN_INFO "totalram_pages = %ld\n", totalram_pages);
mem_init_print_info(NULL);

/*
* To-Do: someone somewhere should wipe out the bootmem map
Expand Down

0 comments on commit 5dc355c

Please sign in to comment.