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

Commit 2442a8ba authored by Luke Browning's avatar Luke Browning Committed by Jeremy Kerr
Browse files

powerpc/spufs: don't extend time time slice if context is not in spu_run



An spu context shouldn't get an extra tick if the time slice code
couldn't find something else to run. This means contexts that are not
within spu_run (ie, SPU_SCHED_SPU_RUN is cleared) will not receive
extra ticks while we have no other contexts waiting.

Signed-off-by: default avatarLuke Browning <lukebrowning@us.ibm.com>
Signed-off-by: default avatarJeremy Kerr <jk@ozlabs.org>
parent 46deed69
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -899,6 +899,7 @@ static noinline void spusched_tick(struct spu_context *ctx)
			spu_add_to_rq(ctx);
			spu_add_to_rq(ctx);
	} else {
	} else {
		spu_context_nospu_trace(spusched_tick__newslice, ctx);
		spu_context_nospu_trace(spusched_tick__newslice, ctx);
		if (!ctx->time_slice)
			ctx->time_slice++;
			ctx->time_slice++;
	}
	}
out:
out: