aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/mm/init.c7
-rw-r--r--arch/x86/mm/init_32.c7
-rw-r--r--arch/x86/mm/init_64.c7
3 files changed, 7 insertions, 14 deletions
diff --git a/arch/x86/mm/init.c b/arch/x86/mm/init.c
index f89df52683c5..cc7fe660f33d 100644
--- a/arch/x86/mm/init.c
+++ b/arch/x86/mm/init.c
@@ -71,3 +71,10 @@ void free_initmem(void)
71 (unsigned long)(&__init_begin), 71 (unsigned long)(&__init_begin),
72 (unsigned long)(&__init_end)); 72 (unsigned long)(&__init_end));
73} 73}
74
75#ifdef CONFIG_BLK_DEV_INITRD
76void free_initrd_mem(unsigned long start, unsigned long end)
77{
78 free_init_pages("initrd memory", start, end);
79}
80#endif
diff --git a/arch/x86/mm/init_32.c b/arch/x86/mm/init_32.c
index 37aeaf366d5f..c69c6b1f5e55 100644
--- a/arch/x86/mm/init_32.c
+++ b/arch/x86/mm/init_32.c
@@ -1275,13 +1275,6 @@ void mark_rodata_ro(void)
1275} 1275}
1276#endif 1276#endif
1277 1277
1278#ifdef CONFIG_BLK_DEV_INITRD
1279void free_initrd_mem(unsigned long start, unsigned long end)
1280{
1281 free_init_pages("initrd memory", start, end);
1282}
1283#endif
1284
1285int __init reserve_bootmem_generic(unsigned long phys, unsigned long len, 1278int __init reserve_bootmem_generic(unsigned long phys, unsigned long len,
1286 int flags) 1279 int flags)
1287{ 1280{
diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c
index 074435e79824..d325186dd32b 100644
--- a/arch/x86/mm/init_64.c
+++ b/arch/x86/mm/init_64.c
@@ -963,13 +963,6 @@ void mark_rodata_ro(void)
963 963
964#endif 964#endif
965 965
966#ifdef CONFIG_BLK_DEV_INITRD
967void free_initrd_mem(unsigned long start, unsigned long end)
968{
969 free_init_pages("initrd memory", start, end);
970}
971#endif
972
973int __init reserve_bootmem_generic(unsigned long phys, unsigned long len, 966int __init reserve_bootmem_generic(unsigned long phys, unsigned long len,
974 int flags) 967 int flags)
975{ 968{