Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 11237
b: refs/heads/master
c: 9043f7e
h: refs/heads/master
i:
  11235: b9d7bd4
v: v3
  • Loading branch information
Atsushi Nemoto authored and Ralf Baechle committed Oct 29, 2005
1 parent 6b6f2cd commit 447951f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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: 9d58f302ca370c720fa47cb419f0b33eaa1a1132
refs/heads/master: 9043f7e95d104795fcb03a2f762524babcd49da5
9 changes: 5 additions & 4 deletions trunk/arch/mips/mm/c-tx39.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,15 +167,16 @@ static void tx39_flush_cache_mm(struct mm_struct *mm)
static void tx39_flush_cache_range(struct vm_area_struct *vma,
unsigned long start, unsigned long end)
{
struct mm_struct *mm = vma->vm_mm;
int exec;

if (!cpu_has_dc_aliases)
if (!(cpu_context(smp_processor_id(), vma->vm_mm)))
return;

if (cpu_context(smp_processor_id(), mm) != 0) {
exec = vma->vm_flags & VM_EXEC;
if (cpu_has_dc_aliases || exec)
tx39_blast_dcache();
if (exec)
tx39_blast_icache();
}
}

static void tx39_flush_cache_page(struct vm_area_struct *vma, unsigned long page, unsigned long pfn)
Expand Down

0 comments on commit 447951f

Please sign in to comment.