diff options
| author | Tejas Upadhyay <tejas.upadhyay@intel.com> | 2026-04-29 15:01:39 +0530 |
|---|---|---|
| committer | Tejas Upadhyay <tejas.upadhyay@intel.com> | 2026-04-30 15:42:21 +0530 |
| commit | 438a9200d6abdae2be64a5ce085cee0244a7c231 (patch) | |
| tree | 351b543510024fa40dc55787d30eb6510731b142 /include/linux | |
| parent | d34b42ffb1dd15603fd20fb8c59891fd30e5988d (diff) | |
drm/xe: Use drmm_mutex_init for VRAM manager lock
Replace mutex_init()/mutex_destroy() with drmm_mutex_init() for the
VRAM manager lock. This leverages DRM managed infrastructure to
automatically destroy the mutex during device teardown, eliminating
manual mutex_destroy() calls in both the normal fini path and the
gpu_buddy_init() error path.
Assisted-by: Claude:claude-opus-4.6
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patch.msgid.link/20260429093138.3899280-2-tejas.upadhyay@intel.com
Signed-off-by: Tejas Upadhyay <tejas.upadhyay@intel.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
