aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/sgi-ip27
diff options
context:
space:
mode:
authorJiang Liu <liuj97@gmail.com>2013-04-29 18:06:43 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-04-29 18:54:30 -0400
commit31605922613dfc59402cd6f3a1b019bc2138ff47 (patch)
tree275da534acbd774675b52debe39c34e82154b24e /arch/mips/sgi-ip27
parent7beb5987875bd633c0e10162fbdd4e35d266a9e1 (diff)
mm/MIPS: use common help functions to free reserved pages
Use common help functions to free reserved pages. Signed-off-by: Jiang Liu <jiang.liu@huawei.com> Cc: Ralf Baechle <ralf@linux-mips.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/mips/sgi-ip27')
-rw-r--r--arch/mips/sgi-ip27/ip27-memory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/sgi-ip27/ip27-memory.c b/arch/mips/sgi-ip27/ip27-memory.c
index 3505d08ff2fd..5f2bddb1860e 100644
--- a/arch/mips/sgi-ip27/ip27-memory.c
+++ b/arch/mips/sgi-ip27/ip27-memory.c
@@ -457,7 +457,7 @@ void __init prom_free_prom_memory(void)
457 /* We got nothing to free here ... */ 457 /* We got nothing to free here ... */
458} 458}
459 459
460extern unsigned long setup_zero_pages(void); 460extern void setup_zero_pages(void);
461 461
462void __init paging_init(void) 462void __init paging_init(void)
463{ 463{
@@ -492,7 +492,7 @@ void __init mem_init(void)
492 totalram_pages += free_all_bootmem_node(NODE_DATA(node)); 492 totalram_pages += free_all_bootmem_node(NODE_DATA(node));
493 } 493 }
494 494
495 totalram_pages -= setup_zero_pages(); /* This comes from node 0 */ 495 setup_zero_pages(); /* This comes from node 0 */
496 496
497 codesize = (unsigned long) &_etext - (unsigned long) &_text; 497 codesize = (unsigned long) &_etext - (unsigned long) &_text;
498 datasize = (unsigned long) &_edata - (unsigned long) &_etext; 498 datasize = (unsigned long) &_edata - (unsigned long) &_etext;