aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMichael Ellerman <michael@ellerman.id.au>2007-09-19 00:38:12 -0400
committerPaul Mackerras <paulus@samba.org>2007-09-19 01:12:19 -0400
commit48cad41f7ee7b8a9a8317a4abbdaf09bc68b4773 (patch)
tree9e31facfe272abed3aa34be36c7e5a70b7da095a /include
parent78810ff6723f20015373b1ba8dd981f24c62f680 (diff)
[POWERPC] spufs: Combine spufs_coredump_calls with spufs_calls
Because spufs might be built as a module, we can't have other parts of the kernel calling directly into it, we need stub routines that check first if the module is loaded. Currently we have two structures which hold callbacks for these stubs, the syscalls are in spufs_calls and the coredump calls are in spufs_coredump_calls. In both cases the logic for registering/unregistering is essentially the same, so we can simplify things by combining the two. Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Acked-by: Arnd Bergmann <arnd.bergmann@de.ibm.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include')
-rw-r--r--include/asm-powerpc/spu.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/include/asm-powerpc/spu.h b/include/asm-powerpc/spu.h
index eb1159cdb8ac..f1b10a187987 100644
--- a/include/asm-powerpc/spu.h
+++ b/include/asm-powerpc/spu.h
@@ -244,13 +244,8 @@ struct spufs_calls {
244 struct file *neighbor); 244 struct file *neighbor);
245 long (*spu_run)(struct file *filp, __u32 __user *unpc, 245 long (*spu_run)(struct file *filp, __u32 __user *unpc,
246 __u32 __user *ustatus); 246 __u32 __user *ustatus);
247 struct module *owner; 247 int (*coredump_extra_notes_size)(void);
248}; 248 void (*coredump_extra_notes_write)(struct file *file);
249
250/* coredump calls implemented in spufs */
251struct spu_coredump_calls {
252 asmlinkage int (*arch_notes_size)(void);
253 asmlinkage void (*arch_write_notes)(struct file *file);
254 struct module *owner; 249 struct module *owner;
255}; 250};
256 251
@@ -277,9 +272,6 @@ struct spu_coredump_calls {
277int register_spu_syscalls(struct spufs_calls *calls); 272int register_spu_syscalls(struct spufs_calls *calls);
278void unregister_spu_syscalls(struct spufs_calls *calls); 273void unregister_spu_syscalls(struct spufs_calls *calls);
279 274
280int register_arch_coredump_calls(struct spu_coredump_calls *calls);
281void unregister_arch_coredump_calls(struct spu_coredump_calls *calls);
282
283int spu_add_sysdev_attr(struct sysdev_attribute *attr); 275int spu_add_sysdev_attr(struct sysdev_attribute *attr);
284void spu_remove_sysdev_attr(struct sysdev_attribute *attr); 276void spu_remove_sysdev_attr(struct sysdev_attribute *attr);
285 277