summaryrefslogtreecommitdiff
path: root/target/linux/adm5120-2.6
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2007-03-20 09:23:43 +0000
committerFlorian Fainelli <florian@openwrt.org>2007-03-20 09:23:43 +0000
commitccb99d82df8463318b58e369af60a66b89e3c77e (patch)
tree9eb50189417419042377ad21258f5a94fe6d8994 /target/linux/adm5120-2.6
parent4b8150a05630a6be7c6ed58123d24f0488133f98 (diff)
downloadmtk-20170518-ccb99d82df8463318b58e369af60a66b89e3c77e.zip
mtk-20170518-ccb99d82df8463318b58e369af60a66b89e3c77e.tar.gz
mtk-20170518-ccb99d82df8463318b58e369af60a66b89e3c77e.tar.bz2
prom_free_prom_memory is useless
SVN-Revision: 6625
Diffstat (limited to 'target/linux/adm5120-2.6')
-rw-r--r--target/linux/adm5120-2.6/files/arch/mips/adm5120/memory.c23
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 a8ffb0c..726c31d 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;
}