diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-07-21 22:28:47 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-07-21 22:28:47 +0000 |
commit | fea12a7b3f20bc135ab533491411e9ff753c01c8 (patch) | |
tree | 31749332968159135ffc3147384c4ac03bdf2ef3 /arch/mips/mm/r2300.c | |
parent | 168660f24dfc46c2702acbe4701a446f42a59578 (diff) |
Another current->mm -> current->active_mm change.
Diffstat (limited to 'arch/mips/mm/r2300.c')
-rw-r--r-- | arch/mips/mm/r2300.c | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/arch/mips/mm/r2300.c b/arch/mips/mm/r2300.c index dcf1e8a2d..88acda86a 100644 --- a/arch/mips/mm/r2300.c +++ b/arch/mips/mm/r2300.c @@ -6,8 +6,6 @@ * with a lot of changes to make this thing work for R3000s * Copyright (C) 1998, 2000 Harald Koerfgen * Copyright (C) 1998 Gleb Raiko & Vladimir Roganov - * - * $Id: r2300.c,v 1.16 2000/03/13 10:33:05 raiko Exp $ */ #include <linux/init.h> #include <linux/kernel.h> @@ -294,7 +292,7 @@ static inline void r3k_flush_cache_all(void) static void r3k_flush_cache_mm(struct mm_struct *mm) { - if(mm->context != 0) { + if (mm->context != 0) { #ifdef DEBUG_CACHE printk("cmm[%d]", (int)mm->context); @@ -309,7 +307,7 @@ static void r3k_flush_cache_range(struct mm_struct *mm, { struct vm_area_struct *vma; - if(mm->context == 0) + if (mm->context == 0) return; start &= PAGE_MASK; @@ -317,15 +315,15 @@ static void r3k_flush_cache_range(struct mm_struct *mm, printk("crange[%d,%08lx,%08lx]", (int)mm->context, start, end); #endif vma = find_vma(mm, start); - if(vma) { - if(mm->context != current->mm->context) { + if (vma) { + if (mm->context != current->active_mm->context) { flush_cache_all(); } else { unsigned long flags, physpage; save_and_cli(flags); - while(start < end) { - if((physpage = get_phys_page(start, mm))) + while (start < end) { + if ((physpage = get_phys_page(start, mm))) r3k_flush_icache_range(physpage, PAGE_SIZE); start += PAGE_SIZE; @@ -340,7 +338,7 @@ static void r3k_flush_cache_page(struct vm_area_struct *vma, { struct mm_struct *mm = vma->vm_mm; - if(mm->context == 0) + if (mm->context == 0) return; #ifdef DEBUG_CACHE @@ -349,7 +347,7 @@ static void r3k_flush_cache_page(struct vm_area_struct *vma, if (vma->vm_flags & VM_EXEC) { unsigned long physpage; - if((physpage = get_phys_page(page, vma->vm_mm))) + if ((physpage = get_phys_page(page, vma->vm_mm))) r3k_flush_icache_range(physpage, PAGE_SIZE); } @@ -416,7 +414,7 @@ void flush_tlb_all(void) void flush_tlb_mm(struct mm_struct *mm) { - if(mm->context != 0) { + if (mm->context != 0) { unsigned long flags; #ifdef DEBUG_TLB |