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/mm | |
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/mm')
-rw-r--r-- | arch/sparc/mm/leon_mm.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/arch/sparc/mm/leon_mm.c b/arch/sparc/mm/leon_mm.c index 7e2bed737ef2..4c67ae6e5023 100644 --- a/arch/sparc/mm/leon_mm.c +++ b/arch/sparc/mm/leon_mm.c | |||
@@ -20,6 +20,18 @@ | |||
20 | int leon_flush_during_switch = 1; | 20 | int leon_flush_during_switch = 1; |
21 | int srmmu_swprobe_trace; | 21 | int srmmu_swprobe_trace; |
22 | 22 | ||
23 | static inline unsigned long leon_get_ctable_ptr(void) | ||
24 | { | ||
25 | unsigned int retval; | ||
26 | |||
27 | __asm__ __volatile__("lda [%1] %2, %0\n\t" : | ||
28 | "=r" (retval) : | ||
29 | "r" (SRMMU_CTXTBL_PTR), | ||
30 | "i" (ASI_LEON_MMUREGS)); | ||
31 | return (retval & SRMMU_CTX_PMASK) << 4; | ||
32 | } | ||
33 | |||
34 | |||
23 | unsigned long srmmu_swprobe(unsigned long vaddr, unsigned long *paddr) | 35 | unsigned long srmmu_swprobe(unsigned long vaddr, unsigned long *paddr) |
24 | { | 36 | { |
25 | 37 | ||
@@ -35,10 +47,10 @@ unsigned long srmmu_swprobe(unsigned long vaddr, unsigned long *paddr) | |||
35 | if (srmmu_swprobe_trace) | 47 | if (srmmu_swprobe_trace) |
36 | printk(KERN_INFO "swprobe: trace on\n"); | 48 | printk(KERN_INFO "swprobe: trace on\n"); |
37 | 49 | ||
38 | ctxtbl = srmmu_get_ctable_ptr(); | 50 | ctxtbl = leon_get_ctable_ptr(); |
39 | if (!(ctxtbl)) { | 51 | if (!(ctxtbl)) { |
40 | if (srmmu_swprobe_trace) | 52 | if (srmmu_swprobe_trace) |
41 | printk(KERN_INFO "swprobe: srmmu_get_ctable_ptr returned 0=>0\n"); | 53 | printk(KERN_INFO "swprobe: leon_get_ctable_ptr returned 0=>0\n"); |
42 | return 0; | 54 | return 0; |
43 | } | 55 | } |
44 | if (!_pfn_valid(PFN(ctxtbl))) { | 56 | if (!_pfn_valid(PFN(ctxtbl))) { |