diff options
author | Markos Chandras <markos.chandras@imgtec.com> | 2013-11-14 11:12:22 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-01-22 14:18:58 -0500 |
commit | c01905eeee579db98dd6b39d3f41497065ecc273 (patch) | |
tree | b0e39a87571076bcdd7e4350e1ccdb9abbcebdf0 /arch/mips/mm/tlb-r4k.c | |
parent | 691038ba45102e7479be1a6be4345e77194da301 (diff) |
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/mm/tlb-r4k.c')
-rw-r--r-- | arch/mips/mm/tlb-r4k.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/mips/mm/tlb-r4k.c b/arch/mips/mm/tlb-r4k.c index da3b0b9c9eae..363aa0343bbe 100644 --- a/arch/mips/mm/tlb-r4k.c +++ b/arch/mips/mm/tlb-r4k.c | |||
@@ -20,16 +20,11 @@ | |||
20 | #include <asm/bootinfo.h> | 20 | #include <asm/bootinfo.h> |
21 | #include <asm/mmu_context.h> | 21 | #include <asm/mmu_context.h> |
22 | #include <asm/pgtable.h> | 22 | #include <asm/pgtable.h> |
23 | #include <asm/tlb.h> | ||
23 | #include <asm/tlbmisc.h> | 24 | #include <asm/tlbmisc.h> |
24 | 25 | ||
25 | extern void build_tlb_refill_handler(void); | 26 | extern void build_tlb_refill_handler(void); |
26 | 27 | ||
27 | /* | ||
28 | * Make sure all entries differ. If they're not different | ||
29 | * MIPS32 will take revenge ... | ||
30 | */ | ||
31 | #define UNIQUE_ENTRYHI(idx) (CKSEG0 + ((idx) << (PAGE_SHIFT + 1))) | ||
32 | |||
33 | /* Atomicity and interruptability */ | 28 | /* Atomicity and interruptability */ |
34 | #ifdef CONFIG_MIPS_MT_SMTC | 29 | #ifdef CONFIG_MIPS_MT_SMTC |
35 | 30 | ||