diff options
author | David S. Miller <davem@davemloft.net> | 2012-05-12 16:30:28 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-05-12 16:30:28 -0400 |
commit | f167edaee0b796994b0d7ba6dc4eff25e7b424d0 (patch) | |
tree | 49687b78bb2dcc7b6fb9c8215367f84c492f1d16 | |
parent | 7d9fa4aa3d41e82d5d52612d07211ee243df3a20 (diff) |
sparc32: Un-btfixup pmd_{bad,present}().
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | arch/sparc/include/asm/pgtable_32.h | 14 | ||||
-rw-r--r-- | arch/sparc/mm/srmmu.c | 9 |
2 files changed, 9 insertions, 14 deletions
diff --git a/arch/sparc/include/asm/pgtable_32.h b/arch/sparc/include/asm/pgtable_32.h index 9b4ff5abec91..ac85f9b87a75 100644 --- a/arch/sparc/include/asm/pgtable_32.h +++ b/arch/sparc/include/asm/pgtable_32.h | |||
@@ -153,17 +153,21 @@ static inline void pte_clear(struct mm_struct *mm, unsigned long addr, pte_t *pt | |||
153 | __pte_clear(ptep); | 153 | __pte_clear(ptep); |
154 | } | 154 | } |
155 | 155 | ||
156 | BTFIXUPDEF_CALL_CONST(int, pmd_bad, pmd_t) | 156 | static inline int pmd_bad(pmd_t pmd) |
157 | BTFIXUPDEF_CALL_CONST(int, pmd_present, pmd_t) | 157 | { |
158 | return (pmd_val(pmd) & SRMMU_ET_MASK) != SRMMU_ET_PTD; | ||
159 | } | ||
160 | |||
161 | static inline int pmd_present(pmd_t pmd) | ||
162 | { | ||
163 | return ((pmd_val(pmd) & SRMMU_ET_MASK) == SRMMU_ET_PTD); | ||
164 | } | ||
158 | 165 | ||
159 | static inline int pmd_none(pmd_t pmd) | 166 | static inline int pmd_none(pmd_t pmd) |
160 | { | 167 | { |
161 | return !pmd_val(pmd); | 168 | return !pmd_val(pmd); |
162 | } | 169 | } |
163 | 170 | ||
164 | #define pmd_bad(pmd) BTFIXUP_CALL(pmd_bad)(pmd) | ||
165 | #define pmd_present(pmd) BTFIXUP_CALL(pmd_present)(pmd) | ||
166 | |||
167 | static inline void pmd_clear(pmd_t *pmdp) | 171 | static inline void pmd_clear(pmd_t *pmdp) |
168 | { | 172 | { |
169 | int i; | 173 | int i; |
diff --git a/arch/sparc/mm/srmmu.c b/arch/sparc/mm/srmmu.c index 94dcd06632a2..87e4d329c0ae 100644 --- a/arch/sparc/mm/srmmu.c +++ b/arch/sparc/mm/srmmu.c | |||
@@ -118,12 +118,6 @@ static inline int srmmu_pte_present(pte_t pte) | |||
118 | static inline int srmmu_pmd_none(pmd_t pmd) | 118 | static inline int srmmu_pmd_none(pmd_t pmd) |
119 | { return !(pmd_val(pmd) & 0xFFFFFFF); } | 119 | { return !(pmd_val(pmd) & 0xFFFFFFF); } |
120 | 120 | ||
121 | static inline int srmmu_pmd_bad(pmd_t pmd) | ||
122 | { return (pmd_val(pmd) & SRMMU_ET_MASK) != SRMMU_ET_PTD; } | ||
123 | |||
124 | static inline int srmmu_pmd_present(pmd_t pmd) | ||
125 | { return ((pmd_val(pmd) & SRMMU_ET_MASK) == SRMMU_ET_PTD); } | ||
126 | |||
127 | static inline pte_t srmmu_pte_wrprotect(pte_t pte) | 121 | static inline pte_t srmmu_pte_wrprotect(pte_t pte) |
128 | { return __pte(pte_val(pte) & ~SRMMU_WRITE);} | 122 | { return __pte(pte_val(pte) & ~SRMMU_WRITE);} |
129 | 123 | ||
@@ -2078,9 +2072,6 @@ void __init ld_mmu_srmmu(void) | |||
2078 | 2072 | ||
2079 | BTFIXUPSET_CALL(pte_present, srmmu_pte_present, BTFIXUPCALL_NORM); | 2073 | BTFIXUPSET_CALL(pte_present, srmmu_pte_present, BTFIXUPCALL_NORM); |
2080 | 2074 | ||
2081 | BTFIXUPSET_CALL(pmd_bad, srmmu_pmd_bad, BTFIXUPCALL_NORM); | ||
2082 | BTFIXUPSET_CALL(pmd_present, srmmu_pmd_present, BTFIXUPCALL_NORM); | ||
2083 | |||
2084 | BTFIXUPSET_CALL(mk_pte, srmmu_mk_pte, BTFIXUPCALL_NORM); | 2075 | BTFIXUPSET_CALL(mk_pte, srmmu_mk_pte, BTFIXUPCALL_NORM); |
2085 | BTFIXUPSET_CALL(mk_pte_phys, srmmu_mk_pte_phys, BTFIXUPCALL_NORM); | 2076 | BTFIXUPSET_CALL(mk_pte_phys, srmmu_mk_pte_phys, BTFIXUPCALL_NORM); |
2086 | BTFIXUPSET_CALL(mk_pte_io, srmmu_mk_pte_io, BTFIXUPCALL_NORM); | 2077 | BTFIXUPSET_CALL(mk_pte_io, srmmu_mk_pte_io, BTFIXUPCALL_NORM); |