Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 172386
b: refs/heads/master
c: 2df341e
h: refs/heads/master
v: v3
  • Loading branch information
Russell King committed Dec 4, 2009
1 parent 113b7b1 commit 06cfab8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7b0a1003e780193e2a11c27f5059c26b65f60679
refs/heads/master: 2df341edf6b8a2db7f414d00faeadccbdd9844ab
11 changes: 8 additions & 3 deletions trunk/arch/arm/mm/flush.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ static void flush_pfn_alias(unsigned long pfn, unsigned long vaddr)
:
: "r" (to), "r" (to + PAGE_SIZE - L1_CACHE_BYTES), "r" (zero)
: "cc");
__flush_icache_all();
}

void flush_cache_mm(struct mm_struct *mm)
Expand Down Expand Up @@ -79,8 +78,10 @@ void flush_cache_page(struct vm_area_struct *vma, unsigned long user_addr, unsig
return;
}

if (cache_is_vipt_aliasing())
if (cache_is_vipt_aliasing()) {
flush_pfn_alias(pfn, user_addr);
__flush_icache_all();
}
}

void flush_ptrace_access(struct vm_area_struct *vma, struct page *page,
Expand All @@ -94,6 +95,7 @@ void flush_ptrace_access(struct vm_area_struct *vma, struct page *page,

if (cache_is_vipt_aliasing()) {
flush_pfn_alias(page_to_pfn(page), uaddr);
__flush_icache_all();
return;
}

Expand Down Expand Up @@ -132,9 +134,11 @@ void __flush_dcache_page(struct address_space *mapping, struct page *page)
* we only need to do one flush - which would be at the relevant
* userspace colour, which is congruent with page->index.
*/
if (mapping && cache_is_vipt_aliasing())
if (mapping && cache_is_vipt_aliasing()) {
flush_pfn_alias(page_to_pfn(page),
page->index << PAGE_CACHE_SHIFT);
__flush_icache_all();
}
}

static void __flush_dcache_aliases(struct address_space *mapping, struct page *page)
Expand Down Expand Up @@ -244,6 +248,7 @@ void __flush_anon_page(struct vm_area_struct *vma, struct page *page, unsigned l
* userspace address only.
*/
flush_pfn_alias(pfn, vmaddr);
__flush_icache_all();
}

/*
Expand Down

0 comments on commit 06cfab8

Please sign in to comment.