diff options
Diffstat (limited to 'include/asm-powerpc')
-rw-r--r-- | include/asm-powerpc/spu.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/include/asm-powerpc/spu.h b/include/asm-powerpc/spu.h index a0f7fc8e23bb..8836c0f1f2f7 100644 --- a/include/asm-powerpc/spu.h +++ b/include/asm-powerpc/spu.h | |||
@@ -121,10 +121,9 @@ struct spu { | |||
121 | unsigned long problem_phys; | 121 | unsigned long problem_phys; |
122 | struct spu_problem __iomem *problem; | 122 | struct spu_problem __iomem *problem; |
123 | struct spu_priv2 __iomem *priv2; | 123 | struct spu_priv2 __iomem *priv2; |
124 | struct list_head list; | ||
125 | struct list_head cbe_list; | 124 | struct list_head cbe_list; |
126 | struct list_head sched_list; | ||
127 | struct list_head full_list; | 125 | struct list_head full_list; |
126 | enum { SPU_FREE, SPU_USED } alloc_state; | ||
128 | int number; | 127 | int number; |
129 | unsigned int irqs[3]; | 128 | unsigned int irqs[3]; |
130 | u32 node; | 129 | u32 node; |
@@ -187,18 +186,16 @@ struct spu { | |||
187 | }; | 186 | }; |
188 | 187 | ||
189 | struct cbe_spu_info { | 188 | struct cbe_spu_info { |
189 | struct mutex list_mutex; | ||
190 | struct list_head spus; | 190 | struct list_head spus; |
191 | struct list_head free_spus; | ||
192 | int n_spus; | 191 | int n_spus; |
192 | int nr_active; | ||
193 | atomic_t reserved_spus; | 193 | atomic_t reserved_spus; |
194 | }; | 194 | }; |
195 | 195 | ||
196 | extern struct cbe_spu_info cbe_spu_info[]; | 196 | extern struct cbe_spu_info cbe_spu_info[]; |
197 | 197 | ||
198 | struct spu *spu_alloc(void); | 198 | void spu_init_channels(struct spu *spu); |
199 | struct spu *spu_alloc_node(int node); | ||
200 | struct spu *spu_alloc_spu(struct spu *spu); | ||
201 | void spu_free(struct spu *spu); | ||
202 | int spu_irq_class_0_bottom(struct spu *spu); | 199 | int spu_irq_class_0_bottom(struct spu *spu); |
203 | int spu_irq_class_1_bottom(struct spu *spu); | 200 | int spu_irq_class_1_bottom(struct spu *spu); |
204 | void spu_irq_setaffinity(struct spu *spu, int cpu); | 201 | void spu_irq_setaffinity(struct spu *spu, int cpu); |