diff options
author | Kirill A. Shutemov <kirill.shutemov@linux.intel.com> | 2017-03-09 09:24:05 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-03-09 14:48:47 -0500 |
commit | 9849a5697d3defb2087cb6b9be5573a142697889 (patch) | |
tree | 4cee81e464700c9d831d0c01361b427e19a5672e /arch/tile | |
parent | 30ec842660bd0d056d4a7028ac5bd4a82b113d4f (diff) |
arch, mm: convert all architectures to use 5level-fixup.h
If an architecture uses 4level-fixup.h we don't need to do anything as
it includes 5level-fixup.h.
If an architecture uses pgtable-nop*d.h, define __ARCH_USE_5LEVEL_HACK
before inclusion of the header. It makes asm-generic code to use
5level-fixup.h.
If an architecture has 4-level paging or folds levels on its own,
include 5level-fixup.h directly.
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/tile')
-rw-r--r-- | arch/tile/include/asm/pgtable_32.h | 1 | ||||
-rw-r--r-- | arch/tile/include/asm/pgtable_64.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/arch/tile/include/asm/pgtable_32.h b/arch/tile/include/asm/pgtable_32.h index d26a42279036..5f8c615cb5e9 100644 --- a/arch/tile/include/asm/pgtable_32.h +++ b/arch/tile/include/asm/pgtable_32.h | |||
@@ -74,6 +74,7 @@ extern unsigned long VMALLOC_RESERVE /* = CONFIG_VMALLOC_RESERVE */; | |||
74 | #define MAXMEM (_VMALLOC_START - PAGE_OFFSET) | 74 | #define MAXMEM (_VMALLOC_START - PAGE_OFFSET) |
75 | 75 | ||
76 | /* We have no pmd or pud since we are strictly a two-level page table */ | 76 | /* We have no pmd or pud since we are strictly a two-level page table */ |
77 | #define __ARCH_USE_5LEVEL_HACK | ||
77 | #include <asm-generic/pgtable-nopmd.h> | 78 | #include <asm-generic/pgtable-nopmd.h> |
78 | 79 | ||
79 | static inline int pud_huge_page(pud_t pud) { return 0; } | 80 | static inline int pud_huge_page(pud_t pud) { return 0; } |
diff --git a/arch/tile/include/asm/pgtable_64.h b/arch/tile/include/asm/pgtable_64.h index e96cec52f6d8..96fe58b45118 100644 --- a/arch/tile/include/asm/pgtable_64.h +++ b/arch/tile/include/asm/pgtable_64.h | |||
@@ -59,6 +59,7 @@ | |||
59 | #ifndef __ASSEMBLY__ | 59 | #ifndef __ASSEMBLY__ |
60 | 60 | ||
61 | /* We have no pud since we are a three-level page table. */ | 61 | /* We have no pud since we are a three-level page table. */ |
62 | #define __ARCH_USE_5LEVEL_HACK | ||
62 | #include <asm-generic/pgtable-nopud.h> | 63 | #include <asm-generic/pgtable-nopud.h> |
63 | 64 | ||
64 | /* | 65 | /* |