Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 41392
b: refs/heads/master
c: 0550d9d
h: refs/heads/master
v: v3
  • Loading branch information
Atsushi Nemoto authored and Ralf Baechle committed Nov 30, 2006
1 parent c17902a commit 1cd6101
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 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: e56798824456bd907cefe840ca127df0518942e3
refs/heads/master: 0550d9d13e02b30efa117d47fcadea450bb23d23
12 changes: 4 additions & 8 deletions trunk/arch/mips/mm/c-r4k.c
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,6 @@ static void __init r4k_blast_scache_setup(void)
static inline void local_r4k_flush_cache_all(void * args)
{
r4k_blast_dcache();
r4k_blast_icache();
}

static void r4k_flush_cache_all(void)
Expand Down Expand Up @@ -359,21 +358,19 @@ static void r4k___flush_cache_all(void)
static inline void local_r4k_flush_cache_range(void * args)
{
struct vm_area_struct *vma = args;
int exec;

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

exec = vma->vm_flags & VM_EXEC;
if (cpu_has_dc_aliases || exec)
r4k_blast_dcache();
if (exec)
r4k_blast_icache();
r4k_blast_dcache();
}

static void r4k_flush_cache_range(struct vm_area_struct *vma,
unsigned long start, unsigned long end)
{
if (!cpu_has_dc_aliases)
return;

r4k_on_each_cpu(local_r4k_flush_cache_range, vma, 1, 1);
}

Expand All @@ -385,7 +382,6 @@ static inline void local_r4k_flush_cache_mm(void * args)
return;

r4k_blast_dcache();
r4k_blast_icache();

/*
* Kludge alert. For obscure reasons R4000SC and R4400SC go nuts if we
Expand Down

0 comments on commit 1cd6101

Please sign in to comment.