diff options
author | Kirill A. Shutemov <kirill.shutemov@linux.intel.com> | 2015-02-10 17:10:28 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-10 17:30:32 -0500 |
commit | 103f3d9a26df944f4c29de190d72dfbf913c71af (patch) | |
tree | 0794f0bada97038b7db3b61abc2087307e7ec12b /arch/cris | |
parent | f5b45de9b00eb53d11ada85c61e4ea1c31ab8218 (diff) |
cris: 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: Mikael Starvik <starvik@axis.com>
Cc: Jesper Nilsson <jesper.nilsson@axis.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/cris')
-rw-r--r-- | arch/cris/include/arch-v10/arch/mmu.h | 3 | ||||
-rw-r--r-- | arch/cris/include/arch-v32/arch/mmu.h | 3 | ||||
-rw-r--r-- | arch/cris/include/asm/pgtable.h | 4 |
3 files changed, 0 insertions, 10 deletions
diff --git a/arch/cris/include/arch-v10/arch/mmu.h b/arch/cris/include/arch-v10/arch/mmu.h index e829e5a37bbe..47a5dd21749d 100644 --- a/arch/cris/include/arch-v10/arch/mmu.h +++ b/arch/cris/include/arch-v10/arch/mmu.h | |||
@@ -58,7 +58,6 @@ typedef struct | |||
58 | /* Bits the HW doesn't care about but the kernel uses them in SW */ | 58 | /* Bits the HW doesn't care about but the kernel uses them in SW */ |
59 | 59 | ||
60 | #define _PAGE_PRESENT (1<<4) /* page present in memory */ | 60 | #define _PAGE_PRESENT (1<<4) /* page present in memory */ |
61 | #define _PAGE_FILE (1<<5) /* set: pagecache, unset: swap (when !PRESENT) */ | ||
62 | #define _PAGE_ACCESSED (1<<5) /* simulated in software using valid bit */ | 61 | #define _PAGE_ACCESSED (1<<5) /* simulated in software using valid bit */ |
63 | #define _PAGE_MODIFIED (1<<6) /* simulated in software using we bit */ | 62 | #define _PAGE_MODIFIED (1<<6) /* simulated in software using we bit */ |
64 | #define _PAGE_READ (1<<7) /* read-enabled */ | 63 | #define _PAGE_READ (1<<7) /* read-enabled */ |
@@ -105,6 +104,4 @@ typedef struct | |||
105 | #define __S110 PAGE_SHARED | 104 | #define __S110 PAGE_SHARED |
106 | #define __S111 PAGE_SHARED | 105 | #define __S111 PAGE_SHARED |
107 | 106 | ||
108 | #define PTE_FILE_MAX_BITS 26 | ||
109 | |||
110 | #endif | 107 | #endif |
diff --git a/arch/cris/include/arch-v32/arch/mmu.h b/arch/cris/include/arch-v32/arch/mmu.h index c1a13e05e963..e6db1616dee5 100644 --- a/arch/cris/include/arch-v32/arch/mmu.h +++ b/arch/cris/include/arch-v32/arch/mmu.h | |||
@@ -53,7 +53,6 @@ typedef struct | |||
53 | * software. | 53 | * software. |
54 | */ | 54 | */ |
55 | #define _PAGE_PRESENT (1 << 5) /* Page is present in memory. */ | 55 | #define _PAGE_PRESENT (1 << 5) /* Page is present in memory. */ |
56 | #define _PAGE_FILE (1 << 6) /* 1=pagecache, 0=swap (when !present) */ | ||
57 | #define _PAGE_ACCESSED (1 << 6) /* Simulated in software using valid bit. */ | 56 | #define _PAGE_ACCESSED (1 << 6) /* Simulated in software using valid bit. */ |
58 | #define _PAGE_MODIFIED (1 << 7) /* Simulated in software using we bit. */ | 57 | #define _PAGE_MODIFIED (1 << 7) /* Simulated in software using we bit. */ |
59 | #define _PAGE_READ (1 << 8) /* Read enabled. */ | 58 | #define _PAGE_READ (1 << 8) /* Read enabled. */ |
@@ -108,6 +107,4 @@ typedef struct | |||
108 | #define __S110 PAGE_SHARED_EXEC | 107 | #define __S110 PAGE_SHARED_EXEC |
109 | #define __S111 PAGE_SHARED_EXEC | 108 | #define __S111 PAGE_SHARED_EXEC |
110 | 109 | ||
111 | #define PTE_FILE_MAX_BITS 25 | ||
112 | |||
113 | #endif /* _ASM_CRIS_ARCH_MMU_H */ | 110 | #endif /* _ASM_CRIS_ARCH_MMU_H */ |
diff --git a/arch/cris/include/asm/pgtable.h b/arch/cris/include/asm/pgtable.h index 8b8c86793225..e824257971c4 100644 --- a/arch/cris/include/asm/pgtable.h +++ b/arch/cris/include/asm/pgtable.h | |||
@@ -114,7 +114,6 @@ extern unsigned long empty_zero_page; | |||
114 | static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } | 114 | static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } |
115 | static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_MODIFIED; } | 115 | static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_MODIFIED; } |
116 | static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } | 116 | static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } |
117 | static inline int pte_file(pte_t pte) { return pte_val(pte) & _PAGE_FILE; } | ||
118 | static inline int pte_special(pte_t pte) { return 0; } | 117 | static inline int pte_special(pte_t pte) { return 0; } |
119 | 118 | ||
120 | static inline pte_t pte_wrprotect(pte_t pte) | 119 | static inline pte_t pte_wrprotect(pte_t pte) |
@@ -290,9 +289,6 @@ static inline void update_mmu_cache(struct vm_area_struct * vma, | |||
290 | */ | 289 | */ |
291 | #define pgtable_cache_init() do { } while (0) | 290 | #define pgtable_cache_init() do { } while (0) |
292 | 291 | ||
293 | #define pte_to_pgoff(x) (pte_val(x) >> 6) | ||
294 | #define pgoff_to_pte(x) __pte(((x) << 6) | _PAGE_FILE) | ||
295 | |||
296 | typedef pte_t *pte_addr_t; | 292 | typedef pte_t *pte_addr_t; |
297 | 293 | ||
298 | #endif /* __ASSEMBLY__ */ | 294 | #endif /* __ASSEMBLY__ */ |