Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 376291
b: refs/heads/master
c: 3e87974
h: refs/heads/master
i:
  376289: 23600cc
  376287: bcdd7f9
v: v3
  • Loading branch information
Vineet Gupta committed May 23, 2013
1 parent 4af8ceb commit a9ba5a2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 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: a950549c675f2c8c504469dec7d780da8a6433dc
refs/heads/master: 3e87974dec5ec25a8a4852d9292db6be659164e6
4 changes: 3 additions & 1 deletion trunk/arch/arc/include/asm/cacheflush.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,10 @@ static inline int cache_is_vipt_aliasing(void)
* checks if two addresses (after page aligning) index into same cache set
*/
#define addr_not_cache_congruent(addr1, addr2) \
({ \
cache_is_vipt_aliasing() ? \
(CACHE_COLOR(addr1) != CACHE_COLOR(addr2)) : 0 \
(CACHE_COLOR(addr1) != CACHE_COLOR(addr2)) : 0; \
})

#define copy_to_user_page(vma, page, vaddr, dst, src, len) \
do { \
Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/arc/mm/tlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,8 @@ void update_mmu_cache(struct vm_area_struct *vma, unsigned long vaddr_unaligned,
* so userspace sees the right data.
* (Avoids the flush for Non-exec + congruent mapping case)
*/
if (vma->vm_flags & VM_EXEC || addr_not_cache_congruent(paddr, vaddr)) {
if ((vma->vm_flags & VM_EXEC) ||
addr_not_cache_congruent(paddr, vaddr)) {
struct page *page = pfn_to_page(pte_pfn(*ptep));

int dirty = test_and_clear_bit(PG_arch_1, &page->flags);
Expand Down

0 comments on commit a9ba5a2

Please sign in to comment.