drm/scheduler: Simplify the allocation of slab caches in drm_sched_fence_slab_init
authorKunwu Chan <chentao@kylinos.cn>
Wed, 21 Feb 2024 08:55:58 +0000 (16:55 +0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 28 Feb 2024 14:55:13 +0000 (15:55 +0100)
commit49c985856d8c459fb57bddcb34b428bee151d250
treee0cd9fd58d0d32c5047b0265137c5584905a6243
parent048a36d8a6085bbd8ab9e5794b713b92ac986450
drm/scheduler: Simplify the allocation of slab caches in drm_sched_fence_slab_init

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

Signed-off-by: Kunwu Chan <chentao@kylinos.cn>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20240221085558.166774-1-chentao@kylinos.cn
drivers/gpu/drm/scheduler/sched_fence.c