spufs.h (5737edd1ddbde5ab7f63bb3cb36015edbdb7c295) spufs.h (099814bb1f9bd9081d7c85867f8eb8c049abc1b9)
1/*
2 * SPU file system
3 *
4 * (C) Copyright IBM Deutschland Entwicklung GmbH 2005
5 *
6 * Author: Arnd Bergmann <arndb@de.ibm.com>
7 *
8 * This program is free software; you can redistribute it and/or modify

--- 149 unchanged lines hidden (view full) ---

158int put_spu_context(struct spu_context *ctx);
159void spu_unmap_mappings(struct spu_context *ctx);
160
161void spu_forget(struct spu_context *ctx);
162void spu_acquire(struct spu_context *ctx);
163void spu_release(struct spu_context *ctx);
164int spu_acquire_runnable(struct spu_context *ctx);
165void spu_acquire_saved(struct spu_context *ctx);
1/*
2 * SPU file system
3 *
4 * (C) Copyright IBM Deutschland Entwicklung GmbH 2005
5 *
6 * Author: Arnd Bergmann <arndb@de.ibm.com>
7 *
8 * This program is free software; you can redistribute it and/or modify

--- 149 unchanged lines hidden (view full) ---

158int put_spu_context(struct spu_context *ctx);
159void spu_unmap_mappings(struct spu_context *ctx);
160
161void spu_forget(struct spu_context *ctx);
162void spu_acquire(struct spu_context *ctx);
163void spu_release(struct spu_context *ctx);
164int spu_acquire_runnable(struct spu_context *ctx);
165void spu_acquire_saved(struct spu_context *ctx);
166int spu_acquire_exclusive(struct spu_context *ctx);
166
167
168static inline void spu_release_exclusive(struct spu_context *ctx)
169{
170 up_write(&ctx->state_sema);
171}
172
167int spu_activate(struct spu_context *ctx, u64 flags);
168void spu_deactivate(struct spu_context *ctx);
169void spu_yield(struct spu_context *ctx);
170int __init spu_sched_init(void);
171void __exit spu_sched_exit(void);
172
173int spu_activate(struct spu_context *ctx, u64 flags);
174void spu_deactivate(struct spu_context *ctx);
175void spu_yield(struct spu_context *ctx);
176int __init spu_sched_init(void);
177void __exit spu_sched_exit(void);
178
179int spu_recycle_isolated(struct spu_context *ctx);
173/*
174 * spufs_wait
175 * Same as wait_event_interruptible(), except that here
176 * we need to call spu_release(ctx) before sleeping, and
177 * then spu_acquire(ctx) when awoken.
178 */
179
180#define spufs_wait(wq, condition) \

--- 31 unchanged lines hidden ---
180/*
181 * spufs_wait
182 * Same as wait_event_interruptible(), except that here
183 * we need to call spu_release(ctx) before sleeping, and
184 * then spu_acquire(ctx) when awoken.
185 */
186
187#define spufs_wait(wq, condition) \

--- 31 unchanged lines hidden ---