summaryrefslogtreecommitdiff
path: root/arch/m68k/mm
diff options
context:
space:
mode:
authorJiang Liu <liuj97@gmail.com>2013-07-03 22:04:27 (GMT)
committerLinus Torvalds <torvalds@linux-foundation.org>2013-07-03 23:07:38 (GMT)
commitb69a9787b1dfb2e5055fb4e0fea71f9e16c7ea01 (patch)
tree5643cef67df314ca6d3587b0dbffac3b0516d19a /arch/m68k/mm
parentc5c009fbe753393dabc5d67b617c8188f81740a2 (diff)
downloadlinux-b69a9787b1dfb2e5055fb4e0fea71f9e16c7ea01.tar.xz
mm/m68k: prepare for killing free_all_bootmem_node()
Prepare for killing free_all_bootmem_node() by using free_all_bootmem(). Signed-off-by: Jiang Liu <jiang.liu@huawei.com> Cc: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Greg Ungerer <gerg@uclinux.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/m68k/mm')
-rw-r--r--arch/m68k/mm/init.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/m68k/mm/init.c b/arch/m68k/mm/init.c
index 397a884..6e0a938 100644
--- a/arch/m68k/mm/init.c
+++ b/arch/m68k/mm/init.c
@@ -148,12 +148,10 @@ void __init print_memmap(void)
void __init mem_init(void)
{
- pg_data_t *pgdat;
int i;
/* this will put all memory onto the freelists */
- for_each_online_pgdat(pgdat)
- free_all_bootmem_node(pgdat);
+ free_all_bootmem();
#if defined(CONFIG_MMU) && !defined(CONFIG_SUN3) && !defined(CONFIG_COLDFIRE)
/* insert pointer tables allocated so far into the tablelist */