diff options
author | Christian König <christian.koenig@amd.com> | 2015-08-20 11:36:28 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-08-25 10:49:12 -0400 |
commit | 87e0a87dabdbe9e1698ef85c620c4110b04992a0 (patch) | |
tree | b88d05c7e312dcd66048701d7414dd02eb907a66 /drivers/gpu/drm/amd | |
parent | 3a185a33a2d291883bd1d0691d22901c345b12c9 (diff) |
drm/amdgpu: remove amdgpu_bo_list_clone
Not used any more.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c | 33 |
2 files changed, 0 insertions, 35 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index 0088af1efd54..a2d5cf7df56f 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h | |||
@@ -1084,8 +1084,6 @@ struct amdgpu_bo_list { | |||
1084 | }; | 1084 | }; |
1085 | 1085 | ||
1086 | struct amdgpu_bo_list * | 1086 | struct amdgpu_bo_list * |
1087 | amdgpu_bo_list_clone(struct amdgpu_bo_list *list); | ||
1088 | struct amdgpu_bo_list * | ||
1089 | amdgpu_bo_list_get(struct amdgpu_fpriv *fpriv, int id); | 1087 | amdgpu_bo_list_get(struct amdgpu_fpriv *fpriv, int id); |
1090 | void amdgpu_bo_list_put(struct amdgpu_bo_list *list); | 1088 | void amdgpu_bo_list_put(struct amdgpu_bo_list *list); |
1091 | void amdgpu_bo_list_free(struct amdgpu_bo_list *list); | 1089 | void amdgpu_bo_list_free(struct amdgpu_bo_list *list); |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c index 7eed523bf28f..f82a2dd83874 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c | |||
@@ -62,39 +62,6 @@ static int amdgpu_bo_list_create(struct amdgpu_fpriv *fpriv, | |||
62 | return 0; | 62 | return 0; |
63 | } | 63 | } |
64 | 64 | ||
65 | struct amdgpu_bo_list * | ||
66 | amdgpu_bo_list_clone(struct amdgpu_bo_list *list) | ||
67 | { | ||
68 | struct amdgpu_bo_list *result; | ||
69 | unsigned i; | ||
70 | |||
71 | result = kmalloc(sizeof(struct amdgpu_bo_list), GFP_KERNEL); | ||
72 | if (!result) | ||
73 | return NULL; | ||
74 | |||
75 | result->array = drm_calloc_large(list->num_entries, | ||
76 | sizeof(struct amdgpu_bo_list_entry)); | ||
77 | if (!result->array) { | ||
78 | kfree(result); | ||
79 | return NULL; | ||
80 | } | ||
81 | |||
82 | mutex_init(&result->lock); | ||
83 | result->gds_obj = list->gds_obj; | ||
84 | result->gws_obj = list->gws_obj; | ||
85 | result->oa_obj = list->oa_obj; | ||
86 | result->has_userptr = list->has_userptr; | ||
87 | result->num_entries = list->num_entries; | ||
88 | |||
89 | memcpy(result->array, list->array, list->num_entries * | ||
90 | sizeof(struct amdgpu_bo_list_entry)); | ||
91 | |||
92 | for (i = 0; i < result->num_entries; ++i) | ||
93 | amdgpu_bo_ref(result->array[i].robj); | ||
94 | |||
95 | return result; | ||
96 | } | ||
97 | |||
98 | static void amdgpu_bo_list_destroy(struct amdgpu_fpriv *fpriv, int id) | 65 | static void amdgpu_bo_list_destroy(struct amdgpu_fpriv *fpriv, int id) |
99 | { | 66 | { |
100 | struct amdgpu_bo_list *list; | 67 | struct amdgpu_bo_list *list; |