diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2012-05-19 16:02:50 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-05-20 02:27:39 -0400 |
commit | 3d5f7d37c8b4cdd564741704d8bb22afd80402ef (patch) | |
tree | 15c1f4bff5d8410b6e0071db80cf9461d5e9f73e /arch/sparc/include | |
parent | accf032cfa582ed95da130b06241637659210edb (diff) |
sparc32: drop unused functions in pgtsrmmu.h
One function was only used by leon - move it to a leon specific file.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/include')
-rw-r--r-- | arch/sparc/include/asm/pgtsrmmu.h | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/arch/sparc/include/asm/pgtsrmmu.h b/arch/sparc/include/asm/pgtsrmmu.h index f6ae2b2b6870..cb828703a63a 100644 --- a/arch/sparc/include/asm/pgtsrmmu.h +++ b/arch/sparc/include/asm/pgtsrmmu.h | |||
@@ -173,17 +173,6 @@ static inline void srmmu_set_ctable_ptr(unsigned long paddr) | |||
173 | "memory"); | 173 | "memory"); |
174 | } | 174 | } |
175 | 175 | ||
176 | static inline unsigned long srmmu_get_ctable_ptr(void) | ||
177 | { | ||
178 | unsigned int retval; | ||
179 | |||
180 | __asm__ __volatile__("lda [%1] %2, %0\n\t" : | ||
181 | "=r" (retval) : | ||
182 | "r" (SRMMU_CTXTBL_PTR), | ||
183 | "i" (ASI_M_MMUREGS)); | ||
184 | return (retval & SRMMU_CTX_PMASK) << 4; | ||
185 | } | ||
186 | |||
187 | static inline void srmmu_set_context(int context) | 176 | static inline void srmmu_set_context(int context) |
188 | { | 177 | { |
189 | __asm__ __volatile__("sta %0, [%1] %2\n\t" : : | 178 | __asm__ __volatile__("sta %0, [%1] %2\n\t" : : |
@@ -231,42 +220,6 @@ static inline void srmmu_flush_whole_tlb(void) | |||
231 | } | 220 | } |
232 | 221 | ||
233 | /* These flush types are not available on all chips... */ | 222 | /* These flush types are not available on all chips... */ |
234 | static inline void srmmu_flush_tlb_ctx(void) | ||
235 | { | ||
236 | __asm__ __volatile__("sta %%g0, [%0] %1\n\t": : | ||
237 | "r" (0x300), /* Flush TLB ctx.. */ | ||
238 | "i" (ASI_M_FLUSH_PROBE) : "memory"); | ||
239 | |||
240 | } | ||
241 | |||
242 | static inline void srmmu_flush_tlb_region(unsigned long addr) | ||
243 | { | ||
244 | addr &= SRMMU_PGDIR_MASK; | ||
245 | __asm__ __volatile__("sta %%g0, [%0] %1\n\t": : | ||
246 | "r" (addr | 0x200), /* Flush TLB region.. */ | ||
247 | "i" (ASI_M_FLUSH_PROBE) : "memory"); | ||
248 | |||
249 | } | ||
250 | |||
251 | |||
252 | static inline void srmmu_flush_tlb_segment(unsigned long addr) | ||
253 | { | ||
254 | addr &= SRMMU_REAL_PMD_MASK; | ||
255 | __asm__ __volatile__("sta %%g0, [%0] %1\n\t": : | ||
256 | "r" (addr | 0x100), /* Flush TLB segment.. */ | ||
257 | "i" (ASI_M_FLUSH_PROBE) : "memory"); | ||
258 | |||
259 | } | ||
260 | |||
261 | static inline void srmmu_flush_tlb_page(unsigned long page) | ||
262 | { | ||
263 | page &= PAGE_MASK; | ||
264 | __asm__ __volatile__("sta %%g0, [%0] %1\n\t": : | ||
265 | "r" (page), /* Flush TLB page.. */ | ||
266 | "i" (ASI_M_FLUSH_PROBE) : "memory"); | ||
267 | |||
268 | } | ||
269 | |||
270 | #ifndef CONFIG_SPARC_LEON | 223 | #ifndef CONFIG_SPARC_LEON |
271 | static inline unsigned long srmmu_hwprobe(unsigned long vaddr) | 224 | static inline unsigned long srmmu_hwprobe(unsigned long vaddr) |
272 | { | 225 | { |
@@ -294,9 +247,6 @@ srmmu_get_pte (unsigned long addr) | |||
294 | return entry; | 247 | return entry; |
295 | } | 248 | } |
296 | 249 | ||
297 | extern unsigned long (*srmmu_read_physical)(unsigned long paddr); | ||
298 | extern void (*srmmu_write_physical)(unsigned long paddr, unsigned long word); | ||
299 | |||
300 | #endif /* !(__ASSEMBLY__) */ | 250 | #endif /* !(__ASSEMBLY__) */ |
301 | 251 | ||
302 | #endif /* !(_SPARC_PGTSRMMU_H) */ | 252 | #endif /* !(_SPARC_PGTSRMMU_H) */ |