diff options
author | Christoph Hellwig <hch@lst.de> | 2007-02-13 20:54:27 (GMT) |
---|---|---|
committer | Arnd Bergmann <arnd@klappe.arndb.de> | 2007-02-13 20:55:42 (GMT) |
commit | 52f04fcf66a5d5d90790d6cfde52e391ecf2b882 (patch) | |
tree | 1fe7e3220964ddff413975fd76fde0e7fcb4fd95 /arch/powerpc/platforms/cell/spufs/context.c | |
parent | ae7b4c5284d11d49ed9432c16505fcbeb8d3b8cf (diff) | |
download | linux-fsl-qoriq-52f04fcf66a5d5d90790d6cfde52e391ecf2b882.tar.xz |
[POWERPC] spu sched: forced preemption at execution
If we start a spu context with realtime priority we want it to run
immediately and not wait until some other lower priority thread has
finished. Try to find a suitable victim and use it's spu in this
case.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Diffstat (limited to 'arch/powerpc/platforms/cell/spufs/context.c')
-rw-r--r-- | arch/powerpc/platforms/cell/spufs/context.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/context.c b/arch/powerpc/platforms/cell/spufs/context.c index 056a8ad..d581f4e 100644 --- a/arch/powerpc/platforms/cell/spufs/context.c +++ b/arch/powerpc/platforms/cell/spufs/context.c @@ -53,6 +53,7 @@ struct spu_context *alloc_spu_context(struct spu_gang *gang) ctx->owner = get_task_mm(current); if (gang) spu_gang_add_ctx(gang, ctx); + ctx->rt_priority = current->rt_priority; ctx->prio = current->prio; goto out; out_free: |