Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mm/c6x: prepare for removing num_physpages and simplify mem_init()

Prepare for removing num_physpages and simplify mem_init().

Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Cc: Mark Salter <msalter@redhat.com>
Cc: Aurelien Jacquiot <a-jacquiot@ti.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Jiang Liu and committed by
Linus Torvalds
02f55324 d9d7e769

+1 -10
+1 -10
arch/c6x/mm/init.c
··· 58 58 59 59 void __init mem_init(void) 60 60 { 61 - int codek, datak; 62 - unsigned long tmp; 63 - unsigned long len = memory_end - memory_start; 64 - 65 61 high_memory = (void *)(memory_end & PAGE_MASK); 66 62 67 63 /* this will put all memory onto the freelists */ 68 64 free_all_bootmem(); 69 65 70 - codek = (_etext - _stext) >> 10; 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); 66 + mem_init_print_info(NULL); 76 67 } 77 68 78 69 #ifdef CONFIG_BLK_DEV_INITRD