Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 179845
b: refs/heads/master
c: 3f09ea4
h: refs/heads/master
i:
  179843: 6428461
v: v3
  • Loading branch information
Thomas Hellstrom authored and Dave Airlie committed Jan 14, 2010
1 parent 6aeafc4 commit 98cb8df
Show file tree
Hide file tree
Showing 3 changed files with 9 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: effe1105bef07f42366c20eac41b80ff9fcf675e
refs/heads/master: 3f09ea4ecdcbcea05541f83e557d6ce2e56626d8
3 changes: 3 additions & 0 deletions trunk/drivers/gpu/drm/ttm/ttm_bo.c
Original file line number Diff line number Diff line change
Expand Up @@ -1844,6 +1844,9 @@ static int ttm_bo_swapout(struct ttm_mem_shrink *shrink)
* anyone tries to access a ttm page.
*/

if (bo->bdev->driver->swap_notify)
bo->bdev->driver->swap_notify(bo);

ret = ttm_tt_swapout(bo->ttm, bo->persistant_swap_storage);
out:

Expand Down
5 changes: 5 additions & 0 deletions trunk/include/drm/ttm/ttm_bo_driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,11 @@ struct ttm_bo_driver {
/* notify the driver we are taking a fault on this BO
* and have reserved it */
void (*fault_reserve_notify)(struct ttm_buffer_object *bo);

/**
* notify the driver that we're about to swap out this bo
*/
void (*swap_notify) (struct ttm_buffer_object *bo);
};

/**
Expand Down

0 comments on commit 98cb8df

Please sign in to comment.