Skip to content

Commit

Permalink
mm/c6x: 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 <[email protected]>
Cc: Mark Salter <[email protected]>
Cc: Aurelien Jacquiot <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
jiangliu authored and torvalds committed Jul 3, 2013
1 parent d9d7e76 commit 02f5532
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions arch/c6x/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,21 +58,12 @@ void __init paging_init(void)

void __init mem_init(void)
{
int codek, datak;
unsigned long tmp;
unsigned long len = memory_end - memory_start;

high_memory = (void *)(memory_end & PAGE_MASK);

/* this will put all memory onto the freelists */
free_all_bootmem();

codek = (_etext - _stext) >> 10;
datak = (_end - _sdata) >> 10;

tmp = nr_free_pages() << PAGE_SHIFT;
printk(KERN_INFO "Memory: %luk/%luk RAM (%dk kernel code, %dk data)\n",
tmp >> 10, len >> 10, codek, datak);
mem_init_print_info(NULL);
}

#ifdef CONFIG_BLK_DEV_INITRD
Expand Down

0 comments on commit 02f5532

Please sign in to comment.