OSDN Git Service

amdgpu: Add BO handle to table in amdgpu_bo_create
authorMichel Dänzer <michel.daenzer@amd.com>
Fri, 14 Jun 2019 16:43:30 +0000 (18:43 +0200)
committerMichel Dänzer <michel@daenzer.net>
Mon, 1 Jul 2019 09:31:59 +0000 (11:31 +0200)
commita1bde9b6d869b65fc911843f9ef0f3e2e64d5797
tree5c83853830c5112a2c5fee8d930feaa4c8c6b7ee
parentb12282db9cef4aa4f9038f0248ecdd30f02bb439
amdgpu: Add BO handle to table in amdgpu_bo_create

Simplifies its callers.

dev->bo_table_mutex is now always held when amdgpu_bo_create is called
(this was already the case in amdgpu_bo_import).

Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
amdgpu/amdgpu_bo.c