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

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

[POWERPC] spusched: No preemption for nosched contexts



And last but not least we need to make sure the scheduler tick never
preempts a nosched context.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarArnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: default avatarJeremy Kerr <jk@ozlabs.org>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 46cbf939
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -522,7 +522,12 @@ void spu_yield(struct spu_context *ctx)

static void spusched_tick(struct spu_context *ctx)
{
	if (ctx->policy == SCHED_FIFO || --ctx->time_slice)
	if (ctx->flags & SPU_CREATE_NOSCHED)
		return;
	if (ctx->policy == SCHED_FIFO)
		return;

	if (--ctx->time_slice)
		return;

	/*