Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e5c0b9ec authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Paul Mackerras
Browse files

[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: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJeremy Kerr <jk@ozlabs.org>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent d30ac124
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -430,10 +430,12 @@ void spu_deactivate(struct spu_context *ctx)
 */
void spu_yield(struct spu_context *ctx)
{
	if (!(ctx->flags & SPU_CREATE_NOSCHED)) {
		mutex_lock(&ctx->state_mutex);
		__spu_deactivate(ctx, 0, MAX_PRIO);
		mutex_unlock(&ctx->state_mutex);
	}
}

void spu_sched_tick(struct work_struct *work)
{