login
Header Space

 
 

[POWERPC] spufs: Fix pointer reference in find_victim

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git-commits-head@...>
Date: Thursday, May 15, 2008 - 10:01 pm

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=08fcf1...
Commit:     08fcf1d61193d7b7779aa6d7388535e26e064a0b
Parent:     bfd123bf91704b88093673e615cc93329f820ab4
Author:     Luke Browning <lukebr@linux.vnet.ibm.com>
AuthorDate: Mon May 12 14:36:59 2008 +0000
Committer:  Paul Mackerras <paulus@samba.org>
CommitDate: Thu May 15 20:47:17 2008 +1000

    [POWERPC] spufs: Fix pointer reference in find_victim
    
    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 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/platforms/cell/spufs/sched.c b/arch/powerpc/platforms/cell/spufs/sched.c
index 2e411f2..745dd51 100644
--- 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);
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[POWERPC] spufs: Fix pointer reference in find_victim, Linux Kernel Mailing List..., (Thu May 15, 10:01 pm)
speck-geostationary