Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 228588
b: refs/heads/master
c: 395a31e
h: refs/heads/master
v: v3
  • Loading branch information
Francisco Jerez committed Dec 8, 2010
1 parent e92f549 commit e91aa4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: a3d487ea5463a9c091b7f9b836b860cf3d82e641
refs/heads/master: 395a31ec7ed9b02c5412f4405acbd6fceacca0fc
3 changes: 2 additions & 1 deletion trunk/drivers/gpu/drm/nouveau/nouveau_fence.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ int
__nouveau_fence_wait(void *sync_obj, void *sync_arg, bool lazy, bool intr)
{
unsigned long timeout = jiffies + (3 * DRM_HZ);
unsigned long sleep_time = jiffies + 1;
int ret = 0;

while (1) {
Expand All @@ -231,7 +232,7 @@ __nouveau_fence_wait(void *sync_obj, void *sync_arg, bool lazy, bool intr)

__set_current_state(intr ? TASK_INTERRUPTIBLE
: TASK_UNINTERRUPTIBLE);
if (lazy)
if (lazy && time_after_eq(jiffies, sleep_time))
schedule_timeout(1);

if (intr && signal_pending(current)) {
Expand Down

0 comments on commit e91aa4a

Please sign in to comment.