Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 228477
b: refs/heads/master
c: 68c4fa3
h: refs/heads/master
i:
  228475: 7a9a85c
v: v3
  • Loading branch information
Thomas Hellstrom authored and Dave Airlie committed Nov 22, 2010
1 parent 249a617 commit 604730e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 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: 2357cbe5f4ca8a52329c2c2a26b68839870d5d43
refs/heads/master: 68c4fa31aa52765314b4285a7835368ea35b509c
15 changes: 8 additions & 7 deletions trunk/drivers/gpu/drm/ttm/ttm_execbuf_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,16 @@ static int ttm_eu_wait_unreserved_locked(struct list_head *list,
void ttm_eu_backoff_reservation(struct list_head *list)
{
struct ttm_validate_buffer *entry;
struct ttm_bo_global *glob;

list_for_each_entry(entry, list, head) {
struct ttm_buffer_object *bo = entry->bo;
if (!entry->reserved)
continue;
if (list_empty(list))
return;

entry->reserved = false;
ttm_bo_unreserve(bo);
}
entry = list_first_entry(list, struct ttm_validate_buffer, head);
glob = entry->bo->glob;
spin_lock(&glob->lru_lock);
ttm_eu_backoff_reservation_locked(list);
spin_unlock(&glob->lru_lock);
}
EXPORT_SYMBOL(ttm_eu_backoff_reservation);

Expand Down

0 comments on commit 604730e

Please sign in to comment.