Commit 731ddea6 authored by Pekka Enberg's avatar Pekka Enberg Committed by Ingo Molnar

x86: move free_initrd_mem() to common mm/init.c

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: default avatarPekka Enberg <penberg@cs.helsinki.fi>
LKML-Reference: <1236158020.29024.28.camel@penberg-laptop>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent f6243239
...@@ -71,3 +71,10 @@ void free_initmem(void) ...@@ -71,3 +71,10 @@ void free_initmem(void)
(unsigned long)(&__init_begin), (unsigned long)(&__init_begin),
(unsigned long)(&__init_end)); (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
...@@ -1275,13 +1275,6 @@ void mark_rodata_ro(void) ...@@ -1275,13 +1275,6 @@ void mark_rodata_ro(void)
} }
#endif #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 __init reserve_bootmem_generic(unsigned long phys, unsigned long len,
int flags) int flags)
{ {
......
...@@ -963,13 +963,6 @@ void mark_rodata_ro(void) ...@@ -963,13 +963,6 @@ void mark_rodata_ro(void)
#endif #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 __init reserve_bootmem_generic(unsigned long phys, unsigned long len,
int flags) int flags)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment