diff options
author | Kanoj Sarcar <kanoj@engr.sgi.com> | 2000-04-24 18:27:37 +0000 |
---|---|---|
committer | Kanoj Sarcar <kanoj@engr.sgi.com> | 2000-04-24 18:27:37 +0000 |
commit | b300fe5b8a34b50493217d022bf3830d64d74656 (patch) | |
tree | f6108c3e5dde7e359aa29a9abe430ba766afa359 /arch/mips64/mm/r4xx0.c | |
parent | 2bba74b71906107e5bce42b542b862f90cf048b3 (diff) |
Fix the init_new_context code not to zap the percpu tlbpid array when
doing a clone-vm operation. Also, the intercpu tlbflush code now properly
does its job by flushing the tlbpid only on the current processor, and
not on all.
Diffstat (limited to 'arch/mips64/mm/r4xx0.c')
-rw-r--r-- | arch/mips64/mm/r4xx0.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips64/mm/r4xx0.c b/arch/mips64/mm/r4xx0.c index d2bd99982..c2b9c4066 100644 --- a/arch/mips64/mm/r4xx0.c +++ b/arch/mips64/mm/r4xx0.c @@ -2056,7 +2056,7 @@ static void r4k_flush_tlb_mm(struct mm_struct *mm) printk("[tlbmm<%d>]", mm->context); #endif __save_and_cli(flags); - get_new_mmu_context(mm); + get_new_cpu_mmu_context(mm, smp_processor_id()); if(mm == current->mm) set_entryhi(CPU_CONTEXT(smp_processor_id(), mm) & 0xff); __restore_flags(flags); @@ -2104,7 +2104,7 @@ static void r4k_flush_tlb_range(struct mm_struct *mm, unsigned long start, } set_entryhi(oldpid); } else { - get_new_mmu_context(mm); + get_new_cpu_mmu_context(mm, smp_processor_id()); if(mm == current->mm) set_entryhi(CPU_CONTEXT(smp_processor_id(), mm) & 0xff); |