drm/amdgpu: Simplify the allocation of sync slab caches
authorKunwu Chan <chentao@kylinos.cn>
Wed, 21 Feb 2024 09:59:07 +0000 (17:59 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 22 Feb 2024 17:05:16 +0000 (12:05 -0500)
commita5fc4e5014cde7b4abd5a95eb1f6ec487de42a9c
treebe3a0ec003b4725feaebb6c5496e4c64711b78f6
parent84eaa2c2c655e3cefc12d39c8ee2d9f8316864ef
drm/amdgpu: Simplify the allocation of sync slab caches

Use the new KMEM_CACHE() macro instead of direct kmem_cache_create
to simplify the creation of SLAB caches.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Kunwu Chan <chentao@kylinos.cn>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c