Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 116913
b: refs/heads/master
c: e869446
h: refs/heads/master
i:
  116911: 28ce50b
v: v3
  • Loading branch information
Jeremy Kerr committed Oct 21, 2008
1 parent 9c4235e commit 0c75b18
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: baf399273f2ea38e2fcbd4d0b6cc7ba7f7db43eb
refs/heads/master: e869446bb6db209e6092f7cba6cdfc2a5e637177
5 changes: 5 additions & 0 deletions trunk/arch/powerpc/platforms/cell/spufs/sputrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ static ssize_t sputrace_read(struct file *file, char __user *buf,
char tbuf[128];
int width;

/* If we have data ready to return, don't block waiting
* for more */
if (cnt > 0 && sputrace_used() == 0)
break;

error = wait_event_interruptible(sputrace_wait,
sputrace_used() > 0);
if (error)
Expand Down

0 comments on commit 0c75b18

Please sign in to comment.