diff options
| author | Christian König <christian.koenig@amd.com> | 2016-04-06 05:12:07 -0400 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2016-05-04 20:21:38 -0400 |
| commit | 98c2872ae99bb7c9e8e4369cf48154f41dd6a109 (patch) | |
| tree | fdbcd77633df61e070604aa07dcb002cefe0dfd8 /drivers/gpu/drm/bochs | |
| parent | c3ea576e0583bb0537cdd66b704e49d380427721 (diff) | |
drm/ttm: implement LRU add callbacks v2
This allows fine grained control for the driver where to add a BO into the LRU.
v2: fix typo in comment
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/bochs')
| -rw-r--r-- | drivers/gpu/drm/bochs/bochs_mm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/bochs/bochs_mm.c b/drivers/gpu/drm/bochs/bochs_mm.c index d812ad014da5..24a30f64ed2d 100644 --- a/drivers/gpu/drm/bochs/bochs_mm.c +++ b/drivers/gpu/drm/bochs/bochs_mm.c | |||
| @@ -212,6 +212,8 @@ struct ttm_bo_driver bochs_bo_driver = { | |||
| 212 | .verify_access = bochs_bo_verify_access, | 212 | .verify_access = bochs_bo_verify_access, |
| 213 | .io_mem_reserve = &bochs_ttm_io_mem_reserve, | 213 | .io_mem_reserve = &bochs_ttm_io_mem_reserve, |
| 214 | .io_mem_free = &bochs_ttm_io_mem_free, | 214 | .io_mem_free = &bochs_ttm_io_mem_free, |
| 215 | .lru_tail = &ttm_bo_default_lru_tail, | ||
| 216 | .swap_lru_tail = &ttm_bo_default_swap_lru_tail, | ||
| 215 | }; | 217 | }; |
| 216 | 218 | ||
| 217 | int bochs_mm_init(struct bochs_device *bochs) | 219 | int bochs_mm_init(struct bochs_device *bochs) |
