diff options
author | Kirill A. Shutemov <kirill.shutemov@linux.intel.com> | 2015-02-10 17:11:01 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-10 17:30:33 -0500 |
commit | 8d55da810f1fabcf1d4c0bbc46205e5f2c0fa84b (patch) | |
tree | d19e66873fdf1baebf3f8fffd368b5e4a8118d93 /arch/parisc/include/asm | |
parent | 3824e3cf7e865b2ff0b71de23b16e332fe6a853a (diff) |
parisc: drop _PAGE_FILE and pte_file()-related helpers
We've replaced remap_file_pages(2) implementation with emulation. Nobody
creates non-linear mapping anymore.
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: "James E.J. Bottomley" <jejb@parisc-linux.org>
Cc: Helge Deller <deller@gmx.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/parisc/include/asm')
-rw-r--r-- | arch/parisc/include/asm/pgtable.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/arch/parisc/include/asm/pgtable.h b/arch/parisc/include/asm/pgtable.h index 22b89d1edba7..1d49a4a7749b 100644 --- a/arch/parisc/include/asm/pgtable.h +++ b/arch/parisc/include/asm/pgtable.h | |||
@@ -146,7 +146,6 @@ extern void purge_tlb_entries(struct mm_struct *, unsigned long); | |||
146 | #define _PAGE_GATEWAY_BIT 28 /* (0x008) privilege promotion allowed */ | 146 | #define _PAGE_GATEWAY_BIT 28 /* (0x008) privilege promotion allowed */ |
147 | #define _PAGE_DMB_BIT 27 /* (0x010) Data Memory Break enable (B bit) */ | 147 | #define _PAGE_DMB_BIT 27 /* (0x010) Data Memory Break enable (B bit) */ |
148 | #define _PAGE_DIRTY_BIT 26 /* (0x020) Page Dirty (D bit) */ | 148 | #define _PAGE_DIRTY_BIT 26 /* (0x020) Page Dirty (D bit) */ |
149 | #define _PAGE_FILE_BIT _PAGE_DIRTY_BIT /* overload this bit */ | ||
150 | #define _PAGE_REFTRAP_BIT 25 /* (0x040) Page Ref. Trap enable (T bit) */ | 149 | #define _PAGE_REFTRAP_BIT 25 /* (0x040) Page Ref. Trap enable (T bit) */ |
151 | #define _PAGE_NO_CACHE_BIT 24 /* (0x080) Uncached Page (U bit) */ | 150 | #define _PAGE_NO_CACHE_BIT 24 /* (0x080) Uncached Page (U bit) */ |
152 | #define _PAGE_ACCESSED_BIT 23 /* (0x100) Software: Page Accessed */ | 151 | #define _PAGE_ACCESSED_BIT 23 /* (0x100) Software: Page Accessed */ |
@@ -167,13 +166,6 @@ extern void purge_tlb_entries(struct mm_struct *, unsigned long); | |||
167 | /* PFN_PTE_SHIFT defines the shift of a PTE value to access the PFN field */ | 166 | /* PFN_PTE_SHIFT defines the shift of a PTE value to access the PFN field */ |
168 | #define PFN_PTE_SHIFT 12 | 167 | #define PFN_PTE_SHIFT 12 |
169 | 168 | ||
170 | |||
171 | /* this is how many bits may be used by the file functions */ | ||
172 | #define PTE_FILE_MAX_BITS (BITS_PER_LONG - PTE_SHIFT) | ||
173 | |||
174 | #define pte_to_pgoff(pte) (pte_val(pte) >> PTE_SHIFT) | ||
175 | #define pgoff_to_pte(off) ((pte_t) { ((off) << PTE_SHIFT) | _PAGE_FILE }) | ||
176 | |||
177 | #define _PAGE_READ (1 << xlate_pabit(_PAGE_READ_BIT)) | 169 | #define _PAGE_READ (1 << xlate_pabit(_PAGE_READ_BIT)) |
178 | #define _PAGE_WRITE (1 << xlate_pabit(_PAGE_WRITE_BIT)) | 170 | #define _PAGE_WRITE (1 << xlate_pabit(_PAGE_WRITE_BIT)) |
179 | #define _PAGE_RW (_PAGE_READ | _PAGE_WRITE) | 171 | #define _PAGE_RW (_PAGE_READ | _PAGE_WRITE) |
@@ -186,7 +178,6 @@ extern void purge_tlb_entries(struct mm_struct *, unsigned long); | |||
186 | #define _PAGE_ACCESSED (1 << xlate_pabit(_PAGE_ACCESSED_BIT)) | 178 | #define _PAGE_ACCESSED (1 << xlate_pabit(_PAGE_ACCESSED_BIT)) |
187 | #define _PAGE_PRESENT (1 << xlate_pabit(_PAGE_PRESENT_BIT)) | 179 | #define _PAGE_PRESENT (1 << xlate_pabit(_PAGE_PRESENT_BIT)) |
188 | #define _PAGE_USER (1 << xlate_pabit(_PAGE_USER_BIT)) | 180 | #define _PAGE_USER (1 << xlate_pabit(_PAGE_USER_BIT)) |
189 | #define _PAGE_FILE (1 << xlate_pabit(_PAGE_FILE_BIT)) | ||
190 | 181 | ||
191 | #define _PAGE_TABLE (_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | _PAGE_DIRTY | _PAGE_ACCESSED) | 182 | #define _PAGE_TABLE (_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | _PAGE_DIRTY | _PAGE_ACCESSED) |
192 | #define _PAGE_CHG_MASK (PAGE_MASK | _PAGE_ACCESSED | _PAGE_DIRTY) | 183 | #define _PAGE_CHG_MASK (PAGE_MASK | _PAGE_ACCESSED | _PAGE_DIRTY) |
@@ -344,7 +335,6 @@ static inline void pgd_clear(pgd_t * pgdp) { } | |||
344 | static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } | 335 | static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } |
345 | static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } | 336 | static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } |
346 | static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } | 337 | static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } |
347 | static inline int pte_file(pte_t pte) { return pte_val(pte) & _PAGE_FILE; } | ||
348 | static inline int pte_special(pte_t pte) { return 0; } | 338 | static inline int pte_special(pte_t pte) { return 0; } |
349 | 339 | ||
350 | static inline pte_t pte_mkclean(pte_t pte) { pte_val(pte) &= ~_PAGE_DIRTY; return pte; } | 340 | static inline pte_t pte_mkclean(pte_t pte) { pte_val(pte) &= ~_PAGE_DIRTY; return pte; } |