[PARISC] Enable free_initrd_mem()
I think it's time to enable free_initrd_mem() again... Signed-off-by: Helge Deller <deller@parisc-linux.org> Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
This commit is contained in:
parent
a81dd18eb9
commit
94c3e87a79
|
@ -1013,9 +1013,9 @@ void flush_tlb_all(void)
|
||||||
#ifdef CONFIG_BLK_DEV_INITRD
|
#ifdef CONFIG_BLK_DEV_INITRD
|
||||||
void free_initrd_mem(unsigned long start, unsigned long end)
|
void free_initrd_mem(unsigned long start, unsigned long end)
|
||||||
{
|
{
|
||||||
#if 0
|
if (start >= end)
|
||||||
if (start < end)
|
return;
|
||||||
printk(KERN_INFO "Freeing initrd memory: %ldk freed\n", (end - start) >> 10);
|
printk(KERN_INFO "Freeing initrd memory: %ldk freed\n", (end - start) >> 10);
|
||||||
for (; start < end; start += PAGE_SIZE) {
|
for (; start < end; start += PAGE_SIZE) {
|
||||||
ClearPageReserved(virt_to_page(start));
|
ClearPageReserved(virt_to_page(start));
|
||||||
init_page_count(virt_to_page(start));
|
init_page_count(virt_to_page(start));
|
||||||
|
@ -1023,6 +1023,5 @@ void free_initrd_mem(unsigned long start, unsigned long end)
|
||||||
num_physpages++;
|
num_physpages++;
|
||||||
totalram_pages++;
|
totalram_pages++;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue