mirror of
https://github.com/torvalds/linux.git
synced 2024-12-04 01:51:34 +00:00
[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: Christoph Hellwig <hch@lst.de> Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
parent
46cbf93960
commit
df09cf3e2c
@ -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;
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user