Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 60652
b: refs/heads/master
c: 933b0e3
h: refs/heads/master
v: v3
  • Loading branch information
Kazunori Asayama authored and Paul Mackerras committed Jul 3, 2007
1 parent a3e8ac4 commit 73c59af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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: fe2f896d67b89a409c366c9a69e30291ab124467
refs/heads/master: 933b0e35247ef0dbd1a078a0ba3705ddbbda129f
9 changes: 5 additions & 4 deletions trunk/arch/powerpc/platforms/cell/spufs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -1499,14 +1499,15 @@ static ssize_t spufs_mfc_write(struct file *file, const char __user *buffer,
if (status)
ret = status;
}
spu_release(ctx);

if (ret)
goto out;
goto out_unlock;

ctx->tagwait |= 1 << cmd.tag;
ret = size;

out_unlock:
spu_release(ctx);
out:
return ret;
}
Expand All @@ -1517,14 +1518,14 @@ static unsigned int spufs_mfc_poll(struct file *file,poll_table *wait)
u32 free_elements, tagstatus;
unsigned int mask;

poll_wait(file, &ctx->mfc_wq, wait);

spu_acquire(ctx);
ctx->ops->set_mfc_query(ctx, ctx->tagwait, 2);
free_elements = ctx->ops->get_mfc_free_elements(ctx);
tagstatus = ctx->ops->read_mfc_tagstatus(ctx);
spu_release(ctx);

poll_wait(file, &ctx->mfc_wq, wait);

mask = 0;
if (free_elements & 0xffff)
mask |= POLLOUT | POLLWRNORM;
Expand Down

0 comments on commit 73c59af

Please sign in to comment.