forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/arch/mips/mm/tlb-r3k.c
....@@ -17,7 +17,6 @@
1717 #include <linux/mm.h>
1818
1919 #include <asm/page.h>
20
-#include <asm/pgtable.h>
2120 #include <asm/mmu_context.h>
2221 #include <asm/tlbmisc.h>
2322 #include <asm/isadep.h>
....@@ -67,18 +66,6 @@
6766 local_irq_restore(flags);
6867 }
6968
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
-
8269 void local_flush_tlb_range(struct vm_area_struct *vma, unsigned long start,
8370 unsigned long end)
8471 {
....@@ -117,7 +104,7 @@
117104 }
118105 write_c0_entryhi(oldpid);
119106 } else {
120
- drop_mmu_context(mm, cpu);
107
+ drop_mmu_context(mm);
121108 }
122109 local_irq_restore(flags);
123110 }