diff options
author | Jiang Liu <liuj97@gmail.com> | 2013-07-03 18:03:52 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-03 19:07:35 -0400 |
commit | 02f5532445c4aed57697b612e72b2a334eeb10ce (patch) | |
tree | 989a3d44edd46e6998f2541c5c5912d17bb3a814 /arch | |
parent | d9d7e769815c9cb66c8a4b144f066bb957ebd98e (diff) |
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/c6x/mm/init.c | 11 |
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 | ||
59 | void __init mem_init(void) | 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 | 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 |