summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-07-31 03:39:50 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-07-31 03:39:50 +0000
commit17d285e537c498cf18ce79a52ca553ea964f389b (patch)
tree3905f77168a7a6d92c68bbd47b5ddae2664fe203 /mm
parentce36512304b7cb5e1a911829b249e403261263ac (diff)
Shave of 50% of lat_mmap. Our cache routines were plain stupid.
Diffstat (limited to 'mm')
-rw-r--r--mm/memory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/memory.c b/mm/memory.c
index 7b54fc585..0d93216b5 100644
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -1063,7 +1063,7 @@ static int do_swap_page(struct mm_struct * mm,
return -1;
flush_page_to_ram(page);
- flush_icache_page(vma, page);
+ flush_icache_page(vma, page, address);
}
mm->rss++;
@@ -1159,7 +1159,7 @@ static int do_no_page(struct mm_struct * mm, struct vm_area_struct * vma,
* handle that later.
*/
flush_page_to_ram(new_page);
- flush_icache_page(vma, new_page);
+ flush_icache_page(vma, new_page, address);
entry = mk_pte(new_page, vma->vm_page_prot);
if (write_access) {
entry = pte_mkwrite(pte_mkdirty(entry));