diff options
author | Paul Mackerras <paulus@samba.org> | 2008-03-03 09:44:06 +0300 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-03-03 09:44:06 +0300 |
commit | b9c64498f53e0f4d90eec03048f73ac215bb6f79 (patch) | |
tree | 554842d2405f6e5aa749d3f907e3ab5977781c05 /arch/powerpc/platforms/cell/spufs/context.c | |
parent | 35d77ef1c05bc3760427954dafaee3ca550542f3 (diff) | |
parent | 2a58aa33daef37134c8a43dca0b7578c3fa7f993 (diff) | |
download | linux-b9c64498f53e0f4d90eec03048f73ac215bb6f79.tar.xz |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/jk/spufs into merge
Diffstat (limited to 'arch/powerpc/platforms/cell/spufs/context.c')
-rw-r--r-- | arch/powerpc/platforms/cell/spufs/context.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/context.c b/arch/powerpc/platforms/cell/spufs/context.c index 133995ed5cc7..cf6c2c89211d 100644 --- a/arch/powerpc/platforms/cell/spufs/context.c +++ b/arch/powerpc/platforms/cell/spufs/context.c @@ -109,13 +109,12 @@ void spu_forget(struct spu_context *ctx) /* * This is basically an open-coded spu_acquire_saved, except that - * we don't acquire the state mutex interruptible. + * we don't acquire the state mutex interruptible, and we don't + * want this context to be rescheduled on release. */ mutex_lock(&ctx->state_mutex); - if (ctx->state != SPU_STATE_SAVED) { - set_bit(SPU_SCHED_WAS_ACTIVE, &ctx->sched_flags); + if (ctx->state != SPU_STATE_SAVED) spu_deactivate(ctx); - } mm = ctx->owner; ctx->owner = NULL; |