提交 df09cf3e 编写于 作者: C Christoph Hellwig 提交者: Paul Mackerras

[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: NChristoph Hellwig <hch@lst.de>
Signed-off-by: NArnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: NJeremy Kerr <jk@ozlabs.org>
Signed-off-by: NPaul Mackerras <paulus@samba.org>
上级 46cbf939
......@@ -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;
/*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册