x86: move free_initrd_mem() to common mm/init.c
authorPekka Enberg <penberg@cs.helsinki.fi>
Wed, 4 Mar 2009 09:13:40 +0000 (11:13 +0200)
committerIngo Molnar <mingo@elte.hu>
Wed, 4 Mar 2009 19:59:26 +0000 (20:59 +0100)
Impact: cleanup

The function is identical on 32-bit and 64-bit configurations so move it to the
common mm/init.c file.

Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
LKML-Reference: <1236158020.29024.28.camel@penberg-laptop>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/init.c
arch/x86/mm/init_32.c
arch/x86/mm/init_64.c

index f89df52683c5d92946d3f09b7a3e298949bdd6f6..cc7fe660f33d0c322ffc52dddfe0a4aecdadee4f 100644 (file)
@@ -71,3 +71,10 @@ void free_initmem(void)
                        (unsigned long)(&__init_begin),
                        (unsigned long)(&__init_end));
 }
+
+#ifdef CONFIG_BLK_DEV_INITRD
+void free_initrd_mem(unsigned long start, unsigned long end)
+{
+       free_init_pages("initrd memory", start, end);
+}
+#endif
index 37aeaf366d5fbc12609064ba93c1bb2483edde79..c69c6b1f5e555d3b3942bd93ed4496f81b2f7167 100644 (file)
@@ -1275,13 +1275,6 @@ void mark_rodata_ro(void)
 }
 #endif
 
-#ifdef CONFIG_BLK_DEV_INITRD
-void free_initrd_mem(unsigned long start, unsigned long end)
-{
-       free_init_pages("initrd memory", start, end);
-}
-#endif
-
 int __init reserve_bootmem_generic(unsigned long phys, unsigned long len,
                                   int flags)
 {
index 074435e79824448928c54094c86fc3b64961c766..d325186dd32b4a45025354acd444dcd01b92bb9d 100644 (file)
@@ -963,13 +963,6 @@ void mark_rodata_ro(void)
 
 #endif
 
-#ifdef CONFIG_BLK_DEV_INITRD
-void free_initrd_mem(unsigned long start, unsigned long end)
-{
-       free_init_pages("initrd memory", start, end);
-}
-#endif
-
 int __init reserve_bootmem_generic(unsigned long phys, unsigned long len,
                                   int flags)
 {