aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2012-05-12 14:35:52 -0400
committerDavid S. Miller <davem@davemloft.net>2012-05-12 16:30:49 -0400
commita3c5c6637bd7ddae34aa0cd8b6baf7cc33a8b163 (patch)
tree6896c7d4e37da6e7dafd61cfc322bd8cfa9e29a4
parentf167edaee0b796994b0d7ba6dc4eff25e7b424d0 (diff)
sparc32: drop loadmmu
Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--arch/sparc/mm/Makefile1
-rw-r--r--arch/sparc/mm/loadmmu.c38
-rw-r--r--arch/sparc/mm/srmmu.c7
3 files changed, 6 insertions, 40 deletions
diff --git a/arch/sparc/mm/Makefile b/arch/sparc/mm/Makefile
index 697eab74c321..c7f156a6a016 100644
--- a/arch/sparc/mm/Makefile
+++ b/arch/sparc/mm/Makefile
@@ -7,7 +7,6 @@ ccflags-y := -Werror
7obj-$(CONFIG_SPARC64) += ultra.o tlb.o tsb.o gup.o 7obj-$(CONFIG_SPARC64) += ultra.o tlb.o tsb.o gup.o
8obj-y += fault_$(BITS).o 8obj-y += fault_$(BITS).o
9obj-y += init_$(BITS).o 9obj-y += init_$(BITS).o
10obj-$(CONFIG_SPARC32) += loadmmu.o
11obj-$(CONFIG_SPARC32) += extable.o btfixup.o srmmu.o iommu.o io-unit.o 10obj-$(CONFIG_SPARC32) += extable.o btfixup.o srmmu.o iommu.o io-unit.o
12obj-$(CONFIG_SPARC32) += hypersparc.o viking.o tsunami.o swift.o 11obj-$(CONFIG_SPARC32) += hypersparc.o viking.o tsunami.o swift.o
13obj-$(CONFIG_SPARC_LEON)+= leon_mm.o 12obj-$(CONFIG_SPARC_LEON)+= leon_mm.o
diff --git a/arch/sparc/mm/loadmmu.c b/arch/sparc/mm/loadmmu.c
deleted file mode 100644
index 49c396da0b7e..000000000000
--- a/arch/sparc/mm/loadmmu.c
+++ /dev/null
@@ -1,38 +0,0 @@
1/*
2 * loadmmu.c: This code loads up all the mm function pointers once the
3 * machine type has been determined. It also sets the static
4 * mmu values such as PAGE_NONE, etc.
5 *
6 * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
7 * Copyright (C) 1998 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
8 */
9
10#include <linux/kernel.h>
11#include <linux/mm.h>
12#include <linux/init.h>
13
14#include <asm/page.h>
15#include <asm/pgtable.h>
16#include <asm/mmu_context.h>
17#include <asm/oplib.h>
18
19struct ctx_list *ctx_list_pool;
20struct ctx_list ctx_free;
21struct ctx_list ctx_used;
22
23extern void ld_mmu_srmmu(void);
24
25void __init load_mmu(void)
26{
27 switch(sparc_cpu_model) {
28 case sun4m:
29 case sun4d:
30 case sparc_leon:
31 ld_mmu_srmmu();
32 break;
33 default:
34 prom_printf("load_mmu: %d unsupported\n", (int)sparc_cpu_model);
35 prom_halt();
36 }
37 btfixup();
38}
diff --git a/arch/sparc/mm/srmmu.c b/arch/sparc/mm/srmmu.c
index 87e4d329c0ae..71abcc5d82b6 100644
--- a/arch/sparc/mm/srmmu.c
+++ b/arch/sparc/mm/srmmu.c
@@ -55,6 +55,10 @@ static unsigned int hwbug_bitmask;
55int vac_cache_size; 55int vac_cache_size;
56int vac_line_size; 56int vac_line_size;
57 57
58struct ctx_list *ctx_list_pool;
59struct ctx_list ctx_free;
60struct ctx_list ctx_used;
61
58extern struct resource sparc_iomap; 62extern struct resource sparc_iomap;
59 63
60extern unsigned long last_valid_pfn; 64extern unsigned long last_valid_pfn;
@@ -2055,7 +2059,7 @@ static void smp_flush_page_for_dma(unsigned long page)
2055#endif 2059#endif
2056 2060
2057/* Load up routines and constants for sun4m and sun4d mmu */ 2061/* Load up routines and constants for sun4m and sun4d mmu */
2058void __init ld_mmu_srmmu(void) 2062void __init load_mmu(void)
2059{ 2063{
2060 extern void ld_mmu_iommu(void); 2064 extern void ld_mmu_iommu(void);
2061 extern void ld_mmu_iounit(void); 2065 extern void ld_mmu_iounit(void);
@@ -2170,4 +2174,5 @@ void __init ld_mmu_srmmu(void)
2170 else 2174 else
2171 sun4m_init_smp(); 2175 sun4m_init_smp();
2172#endif 2176#endif
2177 btfixup();
2173} 2178}