Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 48244
b: refs/heads/master
c: 81998ba
h: refs/heads/master
v: v3
  • Loading branch information
Christoph Hellwig authored and Arnd Bergmann committed Feb 13, 2007
1 parent 63f5458 commit 0b8d153
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: aa56c16807ba7b8e801216cab012d2f498755ba5
refs/heads/master: 81998bafe299b8b675157f0a4dfe8dad43215da9
2 changes: 0 additions & 2 deletions trunk/arch/powerpc/platforms/cell/spufs/context.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ int spu_acquire_exclusive(struct spu_context *ctx)
ret = spu_activate(ctx, 0);
if (ret)
goto out;
ctx->state = SPU_STATE_RUNNABLE;
} else {
/* We need to exclude userspace access to the context. */
spu_unmap_mappings(ctx);
Expand Down Expand Up @@ -173,7 +172,6 @@ int spu_acquire_runnable(struct spu_context *ctx)
ret = spu_activate(ctx, 0);
if (ret)
goto out;
ctx->state = SPU_STATE_RUNNABLE;
}

downgrade_write(&ctx->state_sema);
Expand Down
2 changes: 2 additions & 0 deletions trunk/arch/powerpc/platforms/cell/spufs/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ static inline void bind_context(struct spu *spu, struct spu_context *ctx)
spu->timestamp = jiffies;
spu_cpu_affinity_set(spu, raw_smp_processor_id());
spu_switch_notify(spu, ctx);

ctx->state = SPU_STATE_RUNNABLE;
}

static inline void unbind_context(struct spu *spu, struct spu_context *ctx)
Expand Down

0 comments on commit 0b8d153

Please sign in to comment.