drm/amdgpu: drop amdgpu_sync from amdgpu_vmid_grab v2
authorChristian König <christian.koenig@amd.com>
Wed, 28 Sep 2022 12:00:57 +0000 (14:00 +0200)
committerChristian König <christian.koenig@amd.com>
Thu, 3 Nov 2022 11:45:19 +0000 (12:45 +0100)
commit940ca22b7ea9db6857ba7c6adb961b84d8cc28ff
treef03d5ac59c0fc42773ea8495c95fd98fdc63f8aa
parentc5093cddf56baceb1545028e8a5971d94cf59d25
drm/amdgpu: drop amdgpu_sync from amdgpu_vmid_grab v2

Instead return the fence directly. Avoids memory allocation to store the
fence.

v2: cleanup coding style as well

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Luben Tuikov <luben.tuikov@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221014084641.128280-6-christian.koenig@amd.com
drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ids.h
drivers/gpu/drm/amd/amdgpu/amdgpu_job.c