History

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().

Mike Rapoport committed 7 years ago

Commit fdbdcdd1 parent 4ad35c11 file · +0 −16Browse files

Unified · Split

arch/csky/mm/init.c+0−16
@@ -60,22 +60,6 @@ void __init mem_init(void) · 59 unmodified lines
6060 mem_init_print_info(NULL);
6161 }
6262
63−#ifdef CONFIG_BLK_DEV_INITRD
64−void 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−
7963 extern char __init_begin[], __init_end[];
8064
8165 void free_initmem(void)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t