mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-21 08:53:41 +00:00
[POWERPC] spufs: Don't yield nosched context
Nosched context sould never be scheduled out, thus we must not deactivate them in spu_yield ever. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
parent
d30ac1242b
commit
e5c0b9ec53
@ -430,9 +430,11 @@ void spu_deactivate(struct spu_context *ctx)
|
|||||||
*/
|
*/
|
||||||
void spu_yield(struct spu_context *ctx)
|
void spu_yield(struct spu_context *ctx)
|
||||||
{
|
{
|
||||||
mutex_lock(&ctx->state_mutex);
|
if (!(ctx->flags & SPU_CREATE_NOSCHED)) {
|
||||||
__spu_deactivate(ctx, 0, MAX_PRIO);
|
mutex_lock(&ctx->state_mutex);
|
||||||
mutex_unlock(&ctx->state_mutex);
|
__spu_deactivate(ctx, 0, MAX_PRIO);
|
||||||
|
mutex_unlock(&ctx->state_mutex);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void spu_sched_tick(struct work_struct *work)
|
void spu_sched_tick(struct work_struct *work)
|
||||||
|
Loading…
Reference in New Issue
Block a user