projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bfd123b
)
[POWERPC] spufs: Fix pointer reference in find_victim
author
Luke Browning
<lukebr@linux.vnet.ibm.com>
Mon, 12 May 2008 14:36:59 +0000
(14:36 +0000)
committer
Paul Mackerras
<paulus@samba.org>
Thu, 15 May 2008 10:47:17 +0000
(20:47 +1000)
If victim (not ctx) is in spu_run, add victim to rq.
Signed-off-by: Luke Browning <lukebrowning@us.ibm.com>
Acked-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/cell/spufs/sched.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/platforms/cell/spufs/sched.c
b/arch/powerpc/platforms/cell/spufs/sched.c
index 2e411f23462b47417e50f965905a62f947c73f8f..745dd51ec37f7fdacab76bcc773a4a6fa421716a 100644
(file)
--- a/
arch/powerpc/platforms/cell/spufs/sched.c
+++ b/
arch/powerpc/platforms/cell/spufs/sched.c
@@
-659,7
+659,7
@@
static struct spu *find_victim(struct spu_context *ctx)
victim->stats.invol_ctx_switch++;
spu->stats.invol_ctx_switch++;
- if (test_bit(SPU_SCHED_SPU_RUN, &
ctx
->sched_flags))
+ if (test_bit(SPU_SCHED_SPU_RUN, &
victim
->sched_flags))
spu_add_to_rq(victim);
mutex_unlock(&victim->state_mutex);