aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2006-06-19 14:33:19 -0400
committerPaul Mackerras <paulus@samba.org>2006-06-21 01:01:29 -0400
commit1d64093f6627a7eef1ed0fe005463f0a5ea25a5f (patch)
treefaa57ae7e34dd45b843161c233a59a15fe6ddaf1 /include/asm-powerpc
parent0f0f90c304b42d8ce7fc5958de894bdcff3a0ca1 (diff)
[POWERPC] cell: register SPUs as sysdevs
SPUs are registered as system devices, exposing attributes through sysfs. Since the sysdev includes a kref, we can remove the one in struct spu (it isn't used at the moment anyway). Currently only the interrupt source and numa node attributes are added. Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc')
-rw-r--r--include/asm-powerpc/spu.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/asm-powerpc/spu.h b/include/asm-powerpc/spu.h
index 7cfcff3ef027..946489929eb2 100644
--- a/include/asm-powerpc/spu.h
+++ b/include/asm-powerpc/spu.h
@@ -25,8 +25,8 @@
25#ifdef __KERNEL__ 25#ifdef __KERNEL__
26 26
27#include <linux/config.h> 27#include <linux/config.h>
28#include <linux/kref.h>
29#include <linux/workqueue.h> 28#include <linux/workqueue.h>
29#include <linux/sysdev.h>
30 30
31#define LS_SIZE (256 * 1024) 31#define LS_SIZE (256 * 1024)
32#define LS_ADDR_MASK (LS_SIZE - 1) 32#define LS_ADDR_MASK (LS_SIZE - 1)
@@ -123,7 +123,6 @@ struct spu {
123 u64 flags; 123 u64 flags;
124 u64 dar; 124 u64 dar;
125 u64 dsisr; 125 u64 dsisr;
126 struct kref kref;
127 size_t ls_size; 126 size_t ls_size;
128 unsigned int slb_replace; 127 unsigned int slb_replace;
129 struct mm_struct *mm; 128 struct mm_struct *mm;
@@ -144,6 +143,8 @@ struct spu {
144 char irq_c0[8]; 143 char irq_c0[8];
145 char irq_c1[8]; 144 char irq_c1[8];
146 char irq_c2[8]; 145 char irq_c2[8];
146
147 struct sys_device sysdev;
147}; 148};
148 149
149struct spu *spu_alloc(void); 150struct spu *spu_alloc(void);