diff options
author | Hillf Danton <dhillf@gmail.com> | 2012-01-11 09:37:13 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2012-01-11 09:37:13 -0500 |
commit | f467e4bfb50ca6af042f1b19b3556bd4aca854c3 (patch) | |
tree | 0c8f1d7bc8ac30ee10d7edbb8463f496a75082b2 /arch/mips/include/asm/page.h | |
parent | 8b5690f8847490c1e3ea47266819833a13621253 (diff) |
MIPS: Flush huge TLB
When flushing TLB, if @vma is backed by huge page, we could flush huge
TLB, due to that huge page is defined to be far from normal page.
Signed-off-by: Hillf Danton <dhillf@gmail.com>
Acked-by: David Daney <david.daney@cavium.com>
Cc: linux-mips@linux-mips.org
Cc: "Jayachandran C." <jayachandranc@netlogicmicro.com>
Patchwork: https://patchwork.linux-mips.org/patch/2825/
Signed-off-by: David Daney <david.daney@cavium.com>
Acked-by: Hillf Danton <dhillf@gmail.com>
Patchwork: https://patchwork.linux-mips.org/patch/3114/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include/asm/page.h')
-rw-r--r-- | arch/mips/include/asm/page.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/mips/include/asm/page.h b/arch/mips/include/asm/page.h index e59cd1ac09c2..d41790928c64 100644 --- a/arch/mips/include/asm/page.h +++ b/arch/mips/include/asm/page.h | |||
@@ -38,6 +38,14 @@ | |||
38 | #define HPAGE_SIZE (_AC(1,UL) << HPAGE_SHIFT) | 38 | #define HPAGE_SIZE (_AC(1,UL) << HPAGE_SHIFT) |
39 | #define HPAGE_MASK (~(HPAGE_SIZE - 1)) | 39 | #define HPAGE_MASK (~(HPAGE_SIZE - 1)) |
40 | #define HUGETLB_PAGE_ORDER (HPAGE_SHIFT - PAGE_SHIFT) | 40 | #define HUGETLB_PAGE_ORDER (HPAGE_SHIFT - PAGE_SHIFT) |
41 | #else /* !CONFIG_HUGETLB_PAGE */ | ||
42 | # ifndef BUILD_BUG | ||
43 | # define BUILD_BUG() do { extern void __build_bug(void); __build_bug(); } while (0) | ||
44 | # endif | ||
45 | #define HPAGE_SHIFT ({BUILD_BUG(); 0; }) | ||
46 | #define HPAGE_SIZE ({BUILD_BUG(); 0; }) | ||
47 | #define HPAGE_MASK ({BUILD_BUG(); 0; }) | ||
48 | #define HUGETLB_PAGE_ORDER ({BUILD_BUG(); 0; }) | ||
41 | #endif /* CONFIG_HUGETLB_PAGE */ | 49 | #endif /* CONFIG_HUGETLB_PAGE */ |
42 | 50 | ||
43 | #ifndef __ASSEMBLY__ | 51 | #ifndef __ASSEMBLY__ |