summaryrefslogtreecommitdiffstats
path: root/arch/parisc/mm/init.c
diff options
context:
space:
mode:
authorHelge Deller <deller@parisc-linux.org>2006-03-07 13:34:45 -0700
committerKyle McMartin <kyle@hera.kernel.org>2006-03-30 17:48:41 +0000
commit94c3e87a792c70d041954b0ef68ebd22368d0931 (patch)
treef35c5698cb20fdb6e5158a18ecb5f08e1dbaab2f /arch/parisc/mm/init.c
parenta81dd18eb974cc34634c53a6447b2799ec0c3158 (diff)
downloadop-kernel-dev-94c3e87a792c70d041954b0ef68ebd22368d0931.zip
op-kernel-dev-94c3e87a792c70d041954b0ef68ebd22368d0931.tar.gz
[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>
Diffstat (limited to 'arch/parisc/mm/init.c')
-rw-r--r--arch/parisc/mm/init.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/parisc/mm/init.c b/arch/parisc/mm/init.c
index 852eda3..3796be6 100644
--- a/arch/parisc/mm/init.c
+++ b/arch/parisc/mm/init.c
@@ -1013,9 +1013,9 @@ void flush_tlb_all(void)
#ifdef CONFIG_BLK_DEV_INITRD
void free_initrd_mem(unsigned long start, unsigned long end)
{
-#if 0
- if (start < end)
- printk(KERN_INFO "Freeing initrd memory: %ldk freed\n", (end - start) >> 10);
+ if (start >= end)
+ return;
+ printk(KERN_INFO "Freeing initrd memory: %ldk freed\n", (end - start) >> 10);
for (; start < end; start += PAGE_SIZE) {
ClearPageReserved(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++;
totalram_pages++;
}
-#endif
}
#endif
OpenPOWER on IntegriCloud