aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Rapoport <rppt@linux.ibm.com>2019-08-28 09:35:19 -0400
committerGuo Ren <ren_guo@c-sky.com>2019-09-29 22:26:24 -0400
commitfdbdcddc2c93096e9b956de930d2d710a1342502 (patch)
tree949586e648753b082c0c5159de63bf0cccca6956
parent4ad35c1f56386c8e7019c921bba1af109fde9693 (diff)
csky: Use generic free_initrd_mem()
The csky implementation of free_initrd_mem() is an open-coded version of free_reserved_area() without poisoning. Remove it and make csky use the generic version of free_initrd_mem(). Signed-off-by: Mike Rapoport <rppt@linux.ibm.com> Signed-off-by: Guo Ren <guoren@kernel.org>
-rw-r--r--arch/csky/mm/init.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/arch/csky/mm/init.c b/arch/csky/mm/init.c
index eb0dc9e5065f..d4c2292ea46b 100644
--- a/arch/csky/mm/init.c
+++ b/arch/csky/mm/init.c
@@ -60,22 +60,6 @@ void __init mem_init(void)
60 mem_init_print_info(NULL); 60 mem_init_print_info(NULL);
61} 61}
62 62
63#ifdef CONFIG_BLK_DEV_INITRD
64void free_initrd_mem(unsigned long start, unsigned long end)
65{
66 if (start < end)
67 pr_info("Freeing initrd memory: %ldk freed\n",
68 (end - start) >> 10);
69
70 for (; start < end; start += PAGE_SIZE) {
71 ClearPageReserved(virt_to_page(start));
72 init_page_count(virt_to_page(start));
73 free_page(start);
74 totalram_pages_inc();
75 }
76}
77#endif
78
79extern char __init_begin[], __init_end[]; 63extern char __init_begin[], __init_end[];
80 64
81void free_initmem(void) 65void free_initmem(void)