aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/c6x/mm/init.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/arch/c6x/mm/init.c b/arch/c6x/mm/init.c
index c9ae8ce731d5..63f5560d6eb2 100644
--- a/arch/c6x/mm/init.c
+++ b/arch/c6x/mm/init.c
@@ -58,21 +58,12 @@ void __init paging_init(void)
58 58
59void __init mem_init(void) 59void __init mem_init(void)
60{ 60{
61 int codek, datak;
62 unsigned long tmp;
63 unsigned long len = memory_end - memory_start;
64
65 high_memory = (void *)(memory_end & PAGE_MASK); 61 high_memory = (void *)(memory_end & PAGE_MASK);
66 62
67 /* this will put all memory onto the freelists */ 63 /* this will put all memory onto the freelists */
68 free_all_bootmem(); 64 free_all_bootmem();
69 65
70 codek = (_etext - _stext) >> 10; 66 mem_init_print_info(NULL);
71 datak = (_end - _sdata) >> 10;
72
73 tmp = nr_free_pages() << PAGE_SHIFT;
74 printk(KERN_INFO "Memory: %luk/%luk RAM (%dk kernel code, %dk data)\n",
75 tmp >> 10, len >> 10, codek, datak);
76} 67}
77 68
78#ifdef CONFIG_BLK_DEV_INITRD 69#ifdef CONFIG_BLK_DEV_INITRD