init.c (1da177e4c3f41524e886b7f1b8a0c1fc7321cac2) init.c (7835e98b2e3c66dba79cb0ff8ebb90a2fe030c29)
1/*
2 * linux/arch/m68k/mm/init.c
3 *
4 * Copyright (C) 1995 Hamish Macdonald
5 *
6 * Contains common initialization routines, specific init code moved
7 * to motorola.c and sun3mmu.c
8 */

--- 123 unchanged lines hidden (view full) ---

132}
133
134#ifdef CONFIG_BLK_DEV_INITRD
135void free_initrd_mem(unsigned long start, unsigned long end)
136{
137 int pages = 0;
138 for (; start < end; start += PAGE_SIZE) {
139 ClearPageReserved(virt_to_page(start));
1/*
2 * linux/arch/m68k/mm/init.c
3 *
4 * Copyright (C) 1995 Hamish Macdonald
5 *
6 * Contains common initialization routines, specific init code moved
7 * to motorola.c and sun3mmu.c
8 */

--- 123 unchanged lines hidden (view full) ---

132}
133
134#ifdef CONFIG_BLK_DEV_INITRD
135void free_initrd_mem(unsigned long start, unsigned long end)
136{
137 int pages = 0;
138 for (; start < end; start += PAGE_SIZE) {
139 ClearPageReserved(virt_to_page(start));
140 set_page_count(virt_to_page(start), 1);
140 init_page_count(virt_to_page(start));
141 free_page(start);
142 totalram_pages++;
143 pages++;
144 }
145 printk ("Freeing initrd memory: %dk freed\n", pages);
146}
147#endif
141 free_page(start);
142 totalram_pages++;
143 pages++;
144 }
145 printk ("Freeing initrd memory: %dk freed\n", pages);
146}
147#endif