diff options
author | Michał Winiarski <michal.winiarski@intel.com> | 2024-08-23 18:30:47 +0200 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2024-08-26 17:06:22 +0200 |
commit | 45c4d994b82b08f0ce5eb50f8da29379c92a391e (patch) | |
tree | c68410531bcbabbb059f9d921210b54d9851808e /drivers/gpu/drm/drm_internal.h | |
parent | 5fbca8b48b3050ae7fb611a8b09af60012ed6de1 (diff) | |
download | lwn-45c4d994b82b08f0ce5eb50f8da29379c92a391e.tar.gz lwn-45c4d994b82b08f0ce5eb50f8da29379c92a391e.zip |
accel: Use XArray instead of IDR for minors
Accel minor management is based on DRM (and is also using struct
drm_minor internally), since DRM is using XArray for minors, it makes
sense to also convert accel.
As the two implementations are identical (only difference being the
underlying xarray), move the accel_minor_* functionality to DRM.
Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
Acked-by: James Zhu <James.Zhu@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240823163048.2676257-3-michal.winiarski@intel.com
Signed-off-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'drivers/gpu/drm/drm_internal.h')
-rw-r--r-- | drivers/gpu/drm/drm_internal.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/gpu/drm/drm_internal.h b/drivers/gpu/drm/drm_internal.h index 23c99803af44..1705bfc90b1e 100644 --- a/drivers/gpu/drm/drm_internal.h +++ b/drivers/gpu/drm/drm_internal.h @@ -80,10 +80,6 @@ void drm_prime_destroy_file_private(struct drm_prime_file_private *prime_fpriv); void drm_prime_remove_buf_handle(struct drm_prime_file_private *prime_fpriv, uint32_t handle); -/* drm_drv.c */ -struct drm_minor *drm_minor_acquire(unsigned int minor_id); -void drm_minor_release(struct drm_minor *minor); - /* drm_managed.c */ void drm_managed_release(struct drm_device *dev); void drmm_add_final_kfree(struct drm_device *dev, void *container); |