diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2012-05-11 07:35:17 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-05-11 22:29:10 -0400 |
commit | afaedde7c9bcbae4ea9ece34990da72da9c360af (patch) | |
tree | 8619e72c2b9eb081624285e025ac021d9cae140e /arch/sparc/mm/srmmu.c | |
parent | e7b7e0c356558c4b8aa799a76a88031448ac19c7 (diff) |
sparc32: use inline versions of pgprot_noncached, pte_to_pgoff and pgoff_to_pte
We no longer have different versions of these so use a few simple
static inline functions.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/mm/srmmu.c')
-rw-r--r-- | arch/sparc/mm/srmmu.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/arch/sparc/mm/srmmu.c b/arch/sparc/mm/srmmu.c index 2663b92b9ece..d85da15d4183 100644 --- a/arch/sparc/mm/srmmu.c +++ b/arch/sparc/mm/srmmu.c | |||
@@ -2144,23 +2144,6 @@ static void smp_flush_page_for_dma(unsigned long page) | |||
2144 | 2144 | ||
2145 | #endif | 2145 | #endif |
2146 | 2146 | ||
2147 | static pte_t srmmu_pgoff_to_pte(unsigned long pgoff) | ||
2148 | { | ||
2149 | return __pte((pgoff << SRMMU_PTE_FILE_SHIFT) | SRMMU_FILE); | ||
2150 | } | ||
2151 | |||
2152 | static unsigned long srmmu_pte_to_pgoff(pte_t pte) | ||
2153 | { | ||
2154 | return pte_val(pte) >> SRMMU_PTE_FILE_SHIFT; | ||
2155 | } | ||
2156 | |||
2157 | static pgprot_t srmmu_pgprot_noncached(pgprot_t prot) | ||
2158 | { | ||
2159 | prot &= ~__pgprot(SRMMU_CACHE); | ||
2160 | |||
2161 | return prot; | ||
2162 | } | ||
2163 | |||
2164 | /* Load up routines and constants for sun4m and sun4d mmu */ | 2147 | /* Load up routines and constants for sun4m and sun4d mmu */ |
2165 | void __init ld_mmu_srmmu(void) | 2148 | void __init ld_mmu_srmmu(void) |
2166 | { | 2149 | { |
@@ -2183,7 +2166,6 @@ void __init ld_mmu_srmmu(void) | |||
2183 | page_kernel = pgprot_val(SRMMU_PAGE_KERNEL); | 2166 | page_kernel = pgprot_val(SRMMU_PAGE_KERNEL); |
2184 | 2167 | ||
2185 | /* Functions */ | 2168 | /* Functions */ |
2186 | BTFIXUPSET_CALL(pgprot_noncached, srmmu_pgprot_noncached, BTFIXUPCALL_NORM); | ||
2187 | #ifndef CONFIG_SMP | 2169 | #ifndef CONFIG_SMP |
2188 | BTFIXUPSET_CALL(___xchg32, ___xchg32_sun4md, BTFIXUPCALL_SWAPG1G2); | 2170 | BTFIXUPSET_CALL(___xchg32, ___xchg32_sun4md, BTFIXUPCALL_SWAPG1G2); |
2189 | #endif | 2171 | #endif |
@@ -2250,9 +2232,6 @@ void __init ld_mmu_srmmu(void) | |||
2250 | 2232 | ||
2251 | BTFIXUPSET_CALL(mmu_info, srmmu_mmu_info, BTFIXUPCALL_NORM); | 2233 | BTFIXUPSET_CALL(mmu_info, srmmu_mmu_info, BTFIXUPCALL_NORM); |
2252 | 2234 | ||
2253 | BTFIXUPSET_CALL(pte_to_pgoff, srmmu_pte_to_pgoff, BTFIXUPCALL_NORM); | ||
2254 | BTFIXUPSET_CALL(pgoff_to_pte, srmmu_pgoff_to_pte, BTFIXUPCALL_NORM); | ||
2255 | |||
2256 | get_srmmu_type(); | 2235 | get_srmmu_type(); |
2257 | 2236 | ||
2258 | #ifdef CONFIG_SMP | 2237 | #ifdef CONFIG_SMP |