| .. | .. |
|---|
| 17 | 17 | #include <linux/mm.h> |
|---|
| 18 | 18 | |
|---|
| 19 | 19 | #include <asm/page.h> |
|---|
| 20 | | -#include <asm/pgtable.h> |
|---|
| 21 | 20 | #include <asm/mmu_context.h> |
|---|
| 22 | 21 | #include <asm/tlbmisc.h> |
|---|
| 23 | 22 | #include <asm/isadep.h> |
|---|
| .. | .. |
|---|
| 67 | 66 | local_irq_restore(flags); |
|---|
| 68 | 67 | } |
|---|
| 69 | 68 | |
|---|
| 70 | | -void local_flush_tlb_mm(struct mm_struct *mm) |
|---|
| 71 | | -{ |
|---|
| 72 | | - int cpu = smp_processor_id(); |
|---|
| 73 | | - |
|---|
| 74 | | - if (cpu_context(cpu, mm) != 0) { |
|---|
| 75 | | -#ifdef DEBUG_TLB |
|---|
| 76 | | - printk("[tlbmm<%lu>]", (unsigned long)cpu_context(cpu, mm)); |
|---|
| 77 | | -#endif |
|---|
| 78 | | - drop_mmu_context(mm, cpu); |
|---|
| 79 | | - } |
|---|
| 80 | | -} |
|---|
| 81 | | - |
|---|
| 82 | 69 | void local_flush_tlb_range(struct vm_area_struct *vma, unsigned long start, |
|---|
| 83 | 70 | unsigned long end) |
|---|
| 84 | 71 | { |
|---|
| .. | .. |
|---|
| 117 | 104 | } |
|---|
| 118 | 105 | write_c0_entryhi(oldpid); |
|---|
| 119 | 106 | } else { |
|---|
| 120 | | - drop_mmu_context(mm, cpu); |
|---|
| 107 | + drop_mmu_context(mm); |
|---|
| 121 | 108 | } |
|---|
| 122 | 109 | local_irq_restore(flags); |
|---|
| 123 | 110 | } |
|---|