diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2012-05-12 14:35:52 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-05-12 16:30:49 -0400 |
commit | a3c5c6637bd7ddae34aa0cd8b6baf7cc33a8b163 (patch) | |
tree | 6896c7d4e37da6e7dafd61cfc322bd8cfa9e29a4 | |
parent | f167edaee0b796994b0d7ba6dc4eff25e7b424d0 (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/Makefile | 1 | ||||
-rw-r--r-- | arch/sparc/mm/loadmmu.c | 38 | ||||
-rw-r--r-- | arch/sparc/mm/srmmu.c | 7 |
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 | |||
7 | obj-$(CONFIG_SPARC64) += ultra.o tlb.o tsb.o gup.o | 7 | obj-$(CONFIG_SPARC64) += ultra.o tlb.o tsb.o gup.o |
8 | obj-y += fault_$(BITS).o | 8 | obj-y += fault_$(BITS).o |
9 | obj-y += init_$(BITS).o | 9 | obj-y += init_$(BITS).o |
10 | obj-$(CONFIG_SPARC32) += loadmmu.o | ||
11 | obj-$(CONFIG_SPARC32) += extable.o btfixup.o srmmu.o iommu.o io-unit.o | 10 | obj-$(CONFIG_SPARC32) += extable.o btfixup.o srmmu.o iommu.o io-unit.o |
12 | obj-$(CONFIG_SPARC32) += hypersparc.o viking.o tsunami.o swift.o | 11 | obj-$(CONFIG_SPARC32) += hypersparc.o viking.o tsunami.o swift.o |
13 | obj-$(CONFIG_SPARC_LEON)+= leon_mm.o | 12 | obj-$(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 | |||
19 | struct ctx_list *ctx_list_pool; | ||
20 | struct ctx_list ctx_free; | ||
21 | struct ctx_list ctx_used; | ||
22 | |||
23 | extern void ld_mmu_srmmu(void); | ||
24 | |||
25 | void __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; | |||
55 | int vac_cache_size; | 55 | int vac_cache_size; |
56 | int vac_line_size; | 56 | int vac_line_size; |
57 | 57 | ||
58 | struct ctx_list *ctx_list_pool; | ||
59 | struct ctx_list ctx_free; | ||
60 | struct ctx_list ctx_used; | ||
61 | |||
58 | extern struct resource sparc_iomap; | 62 | extern struct resource sparc_iomap; |
59 | 63 | ||
60 | extern unsigned long last_valid_pfn; | 64 | extern 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 */ |
2058 | void __init ld_mmu_srmmu(void) | 2062 | void __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 | } |