diff options
author | Florian Fainelli <florian@openwrt.org> | 2007-03-20 09:23:43 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2007-03-20 09:23:43 +0000 |
commit | 0dc6f05b1c4a1e40d1a021ed46aeaac256c70ecc (patch) | |
tree | 422ea1435d771f7cde5e027570d8f03928dd4ad2 | |
parent | 194be6da81f88de7daf017913de17a8a01f6745c (diff) | |
download | upstream-0dc6f05b1c4a1e40d1a021ed46aeaac256c70ecc.tar.gz upstream-0dc6f05b1c4a1e40d1a021ed46aeaac256c70ecc.tar.bz2 upstream-0dc6f05b1c4a1e40d1a021ed46aeaac256c70ecc.zip |
prom_free_prom_memory is useless
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6625 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | target/linux/adm5120-2.6/files/arch/mips/adm5120/memory.c | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/target/linux/adm5120-2.6/files/arch/mips/adm5120/memory.c b/target/linux/adm5120-2.6/files/arch/mips/adm5120/memory.c index a8ffb0c8f3..726c31dba2 100644 --- a/target/linux/adm5120-2.6/files/arch/mips/adm5120/memory.c +++ b/target/linux/adm5120-2.6/files/arch/mips/adm5120/memory.c @@ -130,25 +130,6 @@ void __init prom_meminit(void) unsigned long __init prom_free_prom_memory(void) { - unsigned long freed = 0; - unsigned long addr; - int i; - - for (i = 0; i < boot_mem_map.nr_map; i++) { - if (boot_mem_map.map[i].type != BOOT_MEM_ROM_DATA) - continue; - - addr = PAGE_ALIGN(boot_mem_map.map[i].addr); - while (addr < boot_mem_map.map[i].addr - + boot_mem_map.map[i].size) { - ClearPageReserved(virt_to_page(__va(addr))); - init_page_count(virt_to_page(__va(addr))); - free_page((unsigned long)__va(addr)); - addr += PAGE_SIZE; - freed += PAGE_SIZE; - } - } - printk("Freeing prom memory: %ldkb freed\n", freed >> 10); - - return freed; + /* We do not have to prom memory to free */ + return; } |