diff options
author | Christian König <christian.koenig@amd.com> | 2017-04-27 18:38:54 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-12-06 20:47:55 +0300 |
commit | 01f83e0663a5e731dd59549b5cd13dc1e7a726a6 (patch) | |
tree | 3efdb5556b0663dbb9735a4d57c72655b996be47 /drivers/gpu/drm/ttm | |
parent | 1144b63a162cef5a57b85108b608f2486b0410c9 (diff) | |
download | linux-01f83e0663a5e731dd59549b5cd13dc1e7a726a6.tar.xz |
drm/ttm: remove cur_placement
Not used any more.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/ttm')
-rw-r--r-- | drivers/gpu/drm/ttm/ttm_bo.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c index e79c927e0075..77a0fd22e5ba 100644 --- a/drivers/gpu/drm/ttm/ttm_bo.c +++ b/drivers/gpu/drm/ttm/ttm_bo.c @@ -355,11 +355,10 @@ moved: bo->evicted = false; } - if (bo->mem.mm_node) { + if (bo->mem.mm_node) bo->offset = (bo->mem.start << PAGE_SHIFT) + bdev->man[bo->mem.mem_type].gpu_offset; - bo->cur_placement = bo->mem.placement; - } else + else bo->offset = 0; return 0; |