aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms
diff options
context:
space:
mode:
authorarnd@arndb.de <arnd@arndb.de>2006-06-19 14:33:20 -0400
committerPaul Mackerras <paulus@samba.org>2006-06-21 01:01:30 -0400
commit91edfa49b97f0b0fafac5c8d5f171fc183782ce6 (patch)
tree64737a0eb2e3594fcd1c619f5a04810aa5be5a8b /arch/powerpc/platforms
parent1d64093f6627a7eef1ed0fe005463f0a5ea25a5f (diff)
[POWERPC] cell: always build spu base into the kernel
The spu_base module is rather deeply intermixed with the core kernel, so it makes sense to have that built-in. This will let us extend the base in the future without having to export more core symbols just for it. Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r--arch/powerpc/platforms/cell/Makefile6
-rw-r--r--arch/powerpc/platforms/cell/spufs/Makefile4
-rw-r--r--arch/powerpc/platforms/cell/spufs/switch.c4
3 files changed, 8 insertions, 6 deletions
diff --git a/arch/powerpc/platforms/cell/Makefile b/arch/powerpc/platforms/cell/Makefile
index 6b11f6adca08..bfaf40024634 100644
--- a/arch/powerpc/platforms/cell/Makefile
+++ b/arch/powerpc/platforms/cell/Makefile
@@ -3,15 +3,11 @@ obj-y += cbe_regs.o pervasive.o
3obj-$(CONFIG_CBE_RAS) += ras.o 3obj-$(CONFIG_CBE_RAS) += ras.o
4 4
5obj-$(CONFIG_SMP) += smp.o 5obj-$(CONFIG_SMP) += smp.o
6obj-$(CONFIG_SPU_FS) += spu-base.o spufs/
7
8spu-base-y += spu_base.o spu_priv1.o
9 6
10# needed only when building loadable spufs.ko 7# needed only when building loadable spufs.ko
11spufs-modular-$(CONFIG_SPU_FS) += spu_syscalls.o 8spufs-modular-$(CONFIG_SPU_FS) += spu_syscalls.o
12obj-y += $(spufs-modular-m) 9obj-y += $(spufs-modular-m)
13 10
14# always needed in kernel 11# always needed in kernel
15spufs-builtin-$(CONFIG_SPU_FS) += spu_callbacks.o 12spufs-builtin-$(CONFIG_SPU_FS) += spu_callbacks.o spu_base.o spu_priv1.o spufs/
16obj-y += $(spufs-builtin-y) $(spufs-builtin-m) 13obj-y += $(spufs-builtin-y) $(spufs-builtin-m)
17
diff --git a/arch/powerpc/platforms/cell/spufs/Makefile b/arch/powerpc/platforms/cell/spufs/Makefile
index a7cddf40e3d9..7963d520b67b 100644
--- a/arch/powerpc/platforms/cell/spufs/Makefile
+++ b/arch/powerpc/platforms/cell/spufs/Makefile
@@ -1,5 +1,7 @@
1obj-y += switch.o
2
1obj-$(CONFIG_SPU_FS) += spufs.o 3obj-$(CONFIG_SPU_FS) += spufs.o
2spufs-y += inode.o file.o context.o switch.o syscalls.o 4spufs-y += inode.o file.o context.o syscalls.o
3spufs-y += sched.o backing_ops.o hw_ops.o run.o 5spufs-y += sched.o backing_ops.o hw_ops.o run.o
4 6
5# Rules to build switch.o with the help of SPU tool chain 7# Rules to build switch.o with the help of SPU tool chain
diff --git a/arch/powerpc/platforms/cell/spufs/switch.c b/arch/powerpc/platforms/cell/spufs/switch.c
index 1726bfe38ee0..60f8b3616441 100644
--- a/arch/powerpc/platforms/cell/spufs/switch.c
+++ b/arch/powerpc/platforms/cell/spufs/switch.c
@@ -2074,6 +2074,7 @@ int spu_save(struct spu_state *prev, struct spu *spu)
2074 } 2074 }
2075 return rc; 2075 return rc;
2076} 2076}
2077EXPORT_SYMBOL_GPL(spu_save);
2077 2078
2078/** 2079/**
2079 * spu_restore - SPU context restore, with harvest and locking. 2080 * spu_restore - SPU context restore, with harvest and locking.
@@ -2103,6 +2104,7 @@ int spu_restore(struct spu_state *new, struct spu *spu)
2103 } 2104 }
2104 return rc; 2105 return rc;
2105} 2106}
2107EXPORT_SYMBOL_GPL(spu_restore);
2106 2108
2107/** 2109/**
2108 * spu_harvest - SPU harvest (reset) operation 2110 * spu_harvest - SPU harvest (reset) operation
@@ -2193,6 +2195,7 @@ void spu_init_csa(struct spu_state *csa)
2193 init_priv1(csa); 2195 init_priv1(csa);
2194 init_priv2(csa); 2196 init_priv2(csa);
2195} 2197}
2198EXPORT_SYMBOL_GPL(spu_init_csa);
2196 2199
2197void spu_fini_csa(struct spu_state *csa) 2200void spu_fini_csa(struct spu_state *csa)
2198{ 2201{
@@ -2203,3 +2206,4 @@ void spu_fini_csa(struct spu_state *csa)
2203 2206
2204 vfree(csa->lscsa); 2207 vfree(csa->lscsa);
2205} 2208}
2209EXPORT_SYMBOL_GPL(spu_fini_csa);