Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 163988
b: refs/heads/master
c: cecc6b6
h: refs/heads/master
v: v3
  • Loading branch information
Alex Deucher authored and Dave Airlie committed Sep 8, 2009
1 parent 8f6c8b3 commit 4aa46e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 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: 60d15f551abdbc5fef70d85f55aac1e85950bf59
refs/heads/master: cecc6b63a5de547a345c491bb4c18c01a15984a4
11 changes: 1 addition & 10 deletions trunk/drivers/gpu/drm/radeon/radeon_fence.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,17 +171,8 @@ bool radeon_fence_signaled(struct radeon_fence *fence)
int r600_fence_wait(struct radeon_fence *fence, bool intr, bool lazy)
{
struct radeon_device *rdev;
unsigned long cur_jiffies;
unsigned long timeout;
int ret = 0;

cur_jiffies = jiffies;
timeout = HZ / 100;

if (time_after(fence->timeout, cur_jiffies)) {
timeout = fence->timeout - cur_jiffies;
}

rdev = fence->rdev;

__set_current_state(intr ? TASK_INTERRUPTIBLE : TASK_UNINTERRUPTIBLE);
Expand All @@ -190,7 +181,7 @@ int r600_fence_wait(struct radeon_fence *fence, bool intr, bool lazy)
if (radeon_fence_signaled(fence))
break;

if (time_after_eq(jiffies, timeout)) {
if (time_after_eq(jiffies, fence->timeout)) {
ret = -EBUSY;
break;
}
Expand Down

0 comments on commit 4aa46e3

Please sign in to comment.