diff options
author | Atsushi Nemoto <anemo@mba.ocn.ne.jp> | 2006-12-29 10:43:59 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-02-06 11:53:09 -0500 |
commit | c44e8d5e47b8ba672440b92eab0735628469116c (patch) | |
tree | f85364a9482003bf51e3cb10d0725ff3f57ce87c /arch/mips/mm | |
parent | 2fa7937bd8922e1fe4aae6a45e7e787fa45d6043 (diff) |
[MIPS] prom_free_prom_memory cleanup
Current prom_free_prom_memory() implementations are almost same as
free_init_pages(), or no-op. Make free_init_pages() extern (again)
and make prom_free_prom_memory() use it.
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/mm')
-rw-r--r-- | arch/mips/mm/init.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/arch/mips/mm/init.c b/arch/mips/mm/init.c index 49065c133ebf..fb427dbfe71e 100644 --- a/arch/mips/mm/init.c +++ b/arch/mips/mm/init.c | |||
@@ -467,7 +467,7 @@ void __init mem_init(void) | |||
467 | } | 467 | } |
468 | #endif /* !CONFIG_NEED_MULTIPLE_NODES */ | 468 | #endif /* !CONFIG_NEED_MULTIPLE_NODES */ |
469 | 469 | ||
470 | static void free_init_pages(char *what, unsigned long begin, unsigned long end) | 470 | void free_init_pages(const char *what, unsigned long begin, unsigned long end) |
471 | { | 471 | { |
472 | unsigned long pfn; | 472 | unsigned long pfn; |
473 | 473 | ||
@@ -493,17 +493,9 @@ void free_initrd_mem(unsigned long start, unsigned long end) | |||
493 | } | 493 | } |
494 | #endif | 494 | #endif |
495 | 495 | ||
496 | extern unsigned long prom_free_prom_memory(void); | ||
497 | |||
498 | void free_initmem(void) | 496 | void free_initmem(void) |
499 | { | 497 | { |
500 | unsigned long freed; | 498 | prom_free_prom_memory(); |
501 | |||
502 | freed = prom_free_prom_memory(); | ||
503 | if (freed) | ||
504 | printk(KERN_INFO "Freeing firmware memory: %ldkb freed\n", | ||
505 | freed >> 10); | ||
506 | |||
507 | free_init_pages("unused kernel memory", | 499 | free_init_pages("unused kernel memory", |
508 | __pa_symbol(&__init_begin), | 500 | __pa_symbol(&__init_begin), |
509 | __pa_symbol(&__init_end)); | 501 | __pa_symbol(&__init_end)); |