summaryrefslogtreecommitdiffstats
path: root/arch/mips/include/asm/tlb.h
diff options
context:
space:
mode:
authorMarkos Chandras <markos.chandras@imgtec.com>2013-11-14 16:12:22 +0000
committerRalf Baechle <ralf@linux-mips.org>2014-01-22 20:18:58 +0100
commitc01905eeee579db98dd6b39d3f41497065ecc273 (patch)
treeb0e39a87571076bcdd7e4350e1ccdb9abbcebdf0 /arch/mips/include/asm/tlb.h
parent691038ba45102e7479be1a6be4345e77194da301 (diff)
downloadop-kernel-dev-c01905eeee579db98dd6b39d3f41497065ecc273.zip
op-kernel-dev-c01905eeee579db98dd6b39d3f41497065ecc273.tar.gz
MIPS: mm: Move UNIQUE_ENTRYHI macro to a header file
The UNIQUE_ENTRYHI definition was duplicated whenever there was the need to flush the TLB entries. We move this common definition to a header file. Signed-off-by: Markos Chandras <markos.chandras@imgtec.com> Signed-off-by: John Crispin <blogic@openwrt.org> Patchwork: http://patchwork.linux-mips.org/patch/6129/
Diffstat (limited to 'arch/mips/include/asm/tlb.h')
-rw-r--r--arch/mips/include/asm/tlb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/include/asm/tlb.h b/arch/mips/include/asm/tlb.h
index c67842b..235367ce 100644
--- a/arch/mips/include/asm/tlb.h
+++ b/arch/mips/include/asm/tlb.h
@@ -18,6 +18,8 @@
*/
#define tlb_flush(tlb) flush_tlb_mm((tlb)->mm)
+#define UNIQUE_ENTRYHI(idx) (CKSEG0 + ((idx) << (PAGE_SHIFT + 1)))
+
#include <asm-generic/tlb.h>
#endif /* __ASM_TLB_H */
OpenPOWER on IntegriCloud