diff options
author | Christian König <christian.koenig@amd.com> | 2017-10-27 08:17:09 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-12-04 16:41:32 -0500 |
commit | 3da917b6c6843ad0162e9768c40a83b6c4448646 (patch) | |
tree | c5982ec901b7e976dd905e9caa875f187fa6112b /drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c | |
parent | 34a4d2bf06b3ab92024b8e26d6049411369d1f1a (diff) |
drm/amdgpu: nuke amdgpu_ttm_is_bound() v2
Rename amdgpu_gtt_mgr_is_allocated() to amdgpu_gtt_mgr_has_gart_addr() and use
that instead.
v2: rename the function as well.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c index 00e0ce10862f..f7669dc6909b 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c | |||
@@ -79,13 +79,13 @@ static int amdgpu_gtt_mgr_fini(struct ttm_mem_type_manager *man) | |||
79 | } | 79 | } |
80 | 80 | ||
81 | /** | 81 | /** |
82 | * amdgpu_gtt_mgr_is_allocated - Check if mem has address space | 82 | * amdgpu_gtt_mgr_has_gart_addr - Check if mem has address space |
83 | * | 83 | * |
84 | * @mem: the mem object to check | 84 | * @mem: the mem object to check |
85 | * | 85 | * |
86 | * Check if a mem object has already address space allocated. | 86 | * Check if a mem object has already address space allocated. |
87 | */ | 87 | */ |
88 | bool amdgpu_gtt_mgr_is_allocated(struct ttm_mem_reg *mem) | 88 | bool amdgpu_gtt_mgr_has_gart_addr(struct ttm_mem_reg *mem) |
89 | { | 89 | { |
90 | struct drm_mm_node *node = mem->mm_node; | 90 | struct drm_mm_node *node = mem->mm_node; |
91 | 91 | ||
@@ -114,7 +114,7 @@ static int amdgpu_gtt_mgr_alloc(struct ttm_mem_type_manager *man, | |||
114 | unsigned long fpfn, lpfn; | 114 | unsigned long fpfn, lpfn; |
115 | int r; | 115 | int r; |
116 | 116 | ||
117 | if (amdgpu_gtt_mgr_is_allocated(mem)) | 117 | if (amdgpu_gtt_mgr_has_gart_addr(mem)) |
118 | return 0; | 118 | return 0; |
119 | 119 | ||
120 | if (place) | 120 | if (place) |