diff options
Diffstat (limited to 'arch/arc/include/asm/pgtable.h')
-rw-r--r-- | arch/arc/include/asm/pgtable.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arc/include/asm/pgtable.h b/arch/arc/include/asm/pgtable.h index da446180f17b..1d87c18a2976 100644 --- a/arch/arc/include/asm/pgtable.h +++ b/arch/arc/include/asm/pgtable.h | |||
@@ -32,7 +32,7 @@ | |||
32 | #ifndef _ASM_ARC_PGTABLE_H | 32 | #ifndef _ASM_ARC_PGTABLE_H |
33 | #define _ASM_ARC_PGTABLE_H | 33 | #define _ASM_ARC_PGTABLE_H |
34 | 34 | ||
35 | #include <linux/const.h> | 35 | #include <linux/bits.h> |
36 | #define __ARCH_USE_5LEVEL_HACK | 36 | #define __ARCH_USE_5LEVEL_HACK |
37 | #include <asm-generic/pgtable-nopmd.h> | 37 | #include <asm-generic/pgtable-nopmd.h> |
38 | #include <asm/page.h> | 38 | #include <asm/page.h> |
@@ -215,11 +215,11 @@ | |||
215 | #define BITS_FOR_PTE (PGDIR_SHIFT - PAGE_SHIFT) | 215 | #define BITS_FOR_PTE (PGDIR_SHIFT - PAGE_SHIFT) |
216 | #define BITS_FOR_PGD (32 - PGDIR_SHIFT) | 216 | #define BITS_FOR_PGD (32 - PGDIR_SHIFT) |
217 | 217 | ||
218 | #define PGDIR_SIZE _BITUL(PGDIR_SHIFT) /* vaddr span, not PDG sz */ | 218 | #define PGDIR_SIZE BIT(PGDIR_SHIFT) /* vaddr span, not PDG sz */ |
219 | #define PGDIR_MASK (~(PGDIR_SIZE-1)) | 219 | #define PGDIR_MASK (~(PGDIR_SIZE-1)) |
220 | 220 | ||
221 | #define PTRS_PER_PTE _BITUL(BITS_FOR_PTE) | 221 | #define PTRS_PER_PTE BIT(BITS_FOR_PTE) |
222 | #define PTRS_PER_PGD _BITUL(BITS_FOR_PGD) | 222 | #define PTRS_PER_PGD BIT(BITS_FOR_PGD) |
223 | 223 | ||
224 | /* | 224 | /* |
225 | * Number of entries a user land program use. | 225 | * Number of entries a user land program use. |