summaryrefslogtreecommitdiff
path: root/arch/mips/include/asm/pgtable.h
diff options
context:
space:
mode:
authorBibo Mao <maobibo@loongson.cn>2020-05-27 05:25:17 +0300
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2020-05-27 14:05:19 +0300
commit4dd7683ea1d66975fb258d02f2b74a7e9a32b131 (patch)
tree2b0db3520fe7313f767e7dd3d1b6c2ba3986febc /arch/mips/include/asm/pgtable.h
parent62249209a77222e1cfb38dde310bd5a877524f7d (diff)
downloadlinux-4dd7683ea1d66975fb258d02f2b74a7e9a32b131.tar.xz
MIPS: Do not flush tlb page when updating PTE entry
It is not necessary to flush tlb page on all CPUs if suitable PTE entry exists already during page fault handling, just updating TLB is fine. Here redefine flush_tlb_fix_spurious_fault as empty on MIPS system. Signed-off-by: Bibo Mao <maobibo@loongson.cn> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips/include/asm/pgtable.h')
-rw-r--r--arch/mips/include/asm/pgtable.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/mips/include/asm/pgtable.h b/arch/mips/include/asm/pgtable.h
index 9b01d2d78753..f8f48fc361d5 100644
--- a/arch/mips/include/asm/pgtable.h
+++ b/arch/mips/include/asm/pgtable.h
@@ -478,6 +478,11 @@ static inline pgprot_t pgprot_writecombine(pgprot_t _prot)
return __pgprot(prot);
}
+static inline void flush_tlb_fix_spurious_fault(struct vm_area_struct *vma,
+ unsigned long address)
+{
+}
+
/*
* Conversion functions: convert a page and protection to a page entry,
* and a page entry and page directory to the page they refer to.