diff options
| author | Tvrtko Ursulin <[email protected]> | 2024-10-16 12:20:12 +0000 |
|---|---|---|
| committer | Philipp Stanner <[email protected]> | 2024-10-17 10:19:16 +0000 |
| commit | f93126f5d55920d1447ef00a3fbe6706f40f53de (patch) | |
| tree | 689e51826caffa59e051d4d530ee0d42d57d2ad8 /drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | |
| parent | drm/sched: Re-order struct drm_sched_rq members for clarity (diff) | |
| download | kernel-f93126f5d55920d1447ef00a3fbe6706f40f53de.tar.gz kernel-f93126f5d55920d1447ef00a3fbe6706f40f53de.zip | |
drm/sched: Re-group and rename the entity run-queue lock
When writing to a drm_sched_entity's run-queue, writers are protected
through the lock drm_sched_entity.rq_lock. This naming, however,
frequently collides with the separate internal lock of struct
drm_sched_rq, resulting in uses like this:
spin_lock(&entity->rq_lock);
spin_lock(&entity->rq->lock);
Rename drm_sched_entity.rq_lock to improve readability. While at it,
re-order that struct's members to make it more obvious what the lock
protects.
v2:
* Rename some rq_lock straddlers in kerneldoc, improve commit text. (Philipp)
Signed-off-by: Tvrtko Ursulin <[email protected]>
Suggested-by: Christian König <[email protected]>
Cc: Alex Deucher <[email protected]>
Cc: Luben Tuikov <[email protected]>
Cc: Matthew Brost <[email protected]>
Cc: Philipp Stanner <[email protected]>
Reviewed-by: Christian König <[email protected]>
[pstanner: Fix typo in docstring]
Signed-off-by: Philipp Stanner <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c')
0 files changed, 0 insertions, 0 deletions
