Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 163985
b: refs/heads/master
c: c746e20
h: refs/heads/master
i:
  163983: b121e54
v: v3
  • Loading branch information
Dave Airlie authored and Dave Airlie committed Sep 8, 2009
1 parent 8d11077 commit 093366d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 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: 620f37811dcc9e0f97ee79fbf8908fcc097deaee
refs/heads/master: c746e205f2fb6f74b4a622382607f065eca5eb49
10 changes: 7 additions & 3 deletions trunk/drivers/gpu/drm/radeon/radeon_fence.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ int r600_fence_wait(struct radeon_fence *fence, bool intr, bool lazy)
schedule_timeout(1);

if (intr && signal_pending(current)) {
ret = -ERESTART;
ret = -ERESTARTSYS;
break;
}
}
Expand All @@ -225,8 +225,12 @@ int radeon_fence_wait(struct radeon_fence *fence, bool intr)
return 0;
}

if (rdev->family >= CHIP_R600)
return r600_fence_wait(fence, intr, 0);
if (rdev->family >= CHIP_R600) {
r = r600_fence_wait(fence, intr, 0);
if (r == -ERESTARTSYS)
return -EBUSY;
return r;
}

retry:
cur_jiffies = jiffies;
Expand Down

0 comments on commit 093366d

Please sign in to comment.