]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
drm/ttm: remove cur_placement
authorChristian König <christian.koenig@amd.com>
Thu, 27 Apr 2017 15:38:54 +0000 (17:38 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Dec 2017 17:47:55 +0000 (12:47 -0500)
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>
drivers/gpu/drm/ttm/ttm_bo.c
include/drm/ttm/ttm_bo_api.h

index e79c927e007566220bac27049168bcc2c402009b..77a0fd22e5ba3203e16f2080fdc3a9146ee945c2 100644 (file)
@@ -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;
index 29df3a472bcf1b2e6028fcc0bc7448c38b4824da..833c3ad24091cfa21483bff851e1bf8ae6c16dc9 100644 (file)
@@ -224,7 +224,6 @@ struct ttm_buffer_object {
         */
 
        uint64_t offset; /* GPU address space is independent of CPU word size */
-       uint32_t cur_placement;
 
        struct sg_table *sg;