aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2008-11-16 23:08:45 -0500
committerDavid S. Miller <davem@davemloft.net>2008-12-04 12:16:59 -0500
commit27137e5285a3388e8f86d7bc5fe0ed8b92bd4624 (patch)
tree70cd698fb5561743913b5f7615f61df6e8883537 /arch
parentc37ddd936d96b46cf2bb17e7b1a18b2bd24ec1fb (diff)
sparc,sparc64: unify mm/
- move all sparc64/mm/ files to arch/sparc/mm/ - commonly named files are named _64.c - add files to sparc/mm/Makefile preserving link order - delete now unused sparc64/mm/Makefile - sparc64 now finds mm/ in sparc Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch')
-rw-r--r--arch/sparc/mm/Makefile6
-rw-r--r--arch/sparc/mm/fault_64.c (renamed from arch/sparc64/mm/fault.c)0
-rw-r--r--arch/sparc/mm/generic_64.c (renamed from arch/sparc64/mm/generic.c)0
-rw-r--r--arch/sparc/mm/hugetlbpage.c (renamed from arch/sparc64/mm/hugetlbpage.c)0
-rw-r--r--arch/sparc/mm/init_64.c (renamed from arch/sparc64/mm/init.c)4
-rw-r--r--arch/sparc/mm/init_64.h (renamed from arch/sparc64/mm/init.h)0
-rw-r--r--arch/sparc/mm/tlb.c (renamed from arch/sparc64/mm/tlb.c)0
-rw-r--r--arch/sparc/mm/tsb.c (renamed from arch/sparc64/mm/tsb.c)0
-rw-r--r--arch/sparc/mm/ultra.S (renamed from arch/sparc64/mm/ultra.S)0
-rw-r--r--arch/sparc64/Makefile2
-rw-r--r--arch/sparc64/mm/Makefile9
11 files changed, 8 insertions, 13 deletions
diff --git a/arch/sparc/mm/Makefile b/arch/sparc/mm/Makefile
index 3ad1b1f9953e..681abe0a4594 100644
--- a/arch/sparc/mm/Makefile
+++ b/arch/sparc/mm/Makefile
@@ -4,13 +4,17 @@
4asflags-y := -ansi 4asflags-y := -ansi
5ccflags-y := -Werror 5ccflags-y := -Werror
6 6
7obj-y := fault_$(BITS).o 7obj-$(CONFIG_SPARC64) += ultra.o tlb.o tsb.o
8obj-y += fault_$(BITS).o
8obj-y += init_$(BITS).o 9obj-y += init_$(BITS).o
9obj-$(CONFIG_SPARC32) += loadmmu.o 10obj-$(CONFIG_SPARC32) += loadmmu.o
10obj-y += generic_$(BITS).o 11obj-y += generic_$(BITS).o
11obj-$(CONFIG_SPARC32) += extable.o btfixup.o srmmu.o iommu.o io-unit.o 12obj-$(CONFIG_SPARC32) += extable.o btfixup.o srmmu.o iommu.o io-unit.o
12obj-$(CONFIG_SPARC32) += hypersparc.o viking.o tsunami.o swift.o 13obj-$(CONFIG_SPARC32) += hypersparc.o viking.o tsunami.o swift.o
13 14
15# Only used by sparc64
16obj-$(CONFIG_HUGETLB_PAGE) += hugetlbpage.o
17
14# Only used by sparc32 18# Only used by sparc32
15obj-$(CONFIG_HIGHMEM) += highmem.o 19obj-$(CONFIG_HIGHMEM) += highmem.o
16 20
diff --git a/arch/sparc64/mm/fault.c b/arch/sparc/mm/fault_64.c
index a9e474bf6385..a9e474bf6385 100644
--- a/arch/sparc64/mm/fault.c
+++ b/arch/sparc/mm/fault_64.c
diff --git a/arch/sparc64/mm/generic.c b/arch/sparc/mm/generic_64.c
index f362c2037013..f362c2037013 100644
--- a/arch/sparc64/mm/generic.c
+++ b/arch/sparc/mm/generic_64.c
diff --git a/arch/sparc64/mm/hugetlbpage.c b/arch/sparc/mm/hugetlbpage.c
index f27d10369e0c..f27d10369e0c 100644
--- a/arch/sparc64/mm/hugetlbpage.c
+++ b/arch/sparc/mm/hugetlbpage.c
diff --git a/arch/sparc64/mm/init.c b/arch/sparc/mm/init_64.c
index 4bd63968400d..6ea73da29312 100644
--- a/arch/sparc64/mm/init.c
+++ b/arch/sparc/mm/init_64.c
@@ -50,7 +50,7 @@
50#include <asm/cpudata.h> 50#include <asm/cpudata.h>
51#include <asm/irq.h> 51#include <asm/irq.h>
52 52
53#include "init.h" 53#include "init_64.h"
54 54
55unsigned long kern_linear_pte_xor[2] __read_mostly; 55unsigned long kern_linear_pte_xor[2] __read_mostly;
56 56
@@ -954,7 +954,7 @@ int of_node_to_nid(struct device_node *dp)
954 return nid; 954 return nid;
955} 955}
956 956
957static void __init add_node_ranges(void) 957static void add_node_ranges(void)
958{ 958{
959 int i; 959 int i;
960 960
diff --git a/arch/sparc64/mm/init.h b/arch/sparc/mm/init_64.h
index 16063870a489..16063870a489 100644
--- a/arch/sparc64/mm/init.h
+++ b/arch/sparc/mm/init_64.h
diff --git a/arch/sparc64/mm/tlb.c b/arch/sparc/mm/tlb.c
index d8f21e24a82f..d8f21e24a82f 100644
--- a/arch/sparc64/mm/tlb.c
+++ b/arch/sparc/mm/tlb.c
diff --git a/arch/sparc64/mm/tsb.c b/arch/sparc/mm/tsb.c
index f0282fad632a..f0282fad632a 100644
--- a/arch/sparc64/mm/tsb.c
+++ b/arch/sparc/mm/tsb.c
diff --git a/arch/sparc64/mm/ultra.S b/arch/sparc/mm/ultra.S
index e4c146f7c7e9..e4c146f7c7e9 100644
--- a/arch/sparc64/mm/ultra.S
+++ b/arch/sparc/mm/ultra.S
diff --git a/arch/sparc64/Makefile b/arch/sparc64/Makefile
index 3dbda408572b..bfe08680c897 100644
--- a/arch/sparc64/Makefile
+++ b/arch/sparc64/Makefile
@@ -27,7 +27,7 @@ endif
27 27
28head-y := arch/sparc64/kernel/head.o arch/sparc64/kernel/init_task.o 28head-y := arch/sparc64/kernel/head.o arch/sparc64/kernel/init_task.o
29 29
30core-y += arch/sparc64/kernel/ arch/sparc64/mm/ 30core-y += arch/sparc64/kernel/ arch/sparc/mm/
31core-y += arch/sparc/math-emu/ 31core-y += arch/sparc/math-emu/
32libs-y += arch/sparc64/prom/ arch/sparc64/lib/ 32libs-y += arch/sparc64/prom/ arch/sparc64/lib/
33drivers-$(CONFIG_OPROFILE) += arch/sparc/oprofile/ 33drivers-$(CONFIG_OPROFILE) += arch/sparc/oprofile/
diff --git a/arch/sparc64/mm/Makefile b/arch/sparc64/mm/Makefile
deleted file mode 100644
index 68d04c0370f4..000000000000
--- a/arch/sparc64/mm/Makefile
+++ /dev/null
@@ -1,9 +0,0 @@
1# Makefile for the linux Sparc64-specific parts of the memory manager.
2#
3
4EXTRA_AFLAGS := -ansi
5EXTRA_CFLAGS := -Werror
6
7obj-y := ultra.o tlb.o tsb.o fault.o init.o generic.o
8
9obj-$(CONFIG_HUGETLB_PAGE) += hugetlbpage.o