Skip to content

Commit e996127

Browse files
Tvrtko Ursulinalexdeucher
authored andcommitted
drm/amdgpu: Use DRM scheduler API in amdgpu_xcp_release_sched
Lets use the existing helper instead of peeking into the structure directly. Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com> Cc: Christian König <christian.koenig@amd.com> Cc: Danilo Krummrich <dakr@redhat.com> Cc: Matthew Brost <matthew.brost@intel.com> Cc: Philipp Stanner <pstanner@redhat.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 2affe2b commit e996127

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ void amdgpu_xcp_release_sched(struct amdgpu_device *adev,
427427
return;
428428

429429
sched = entity->entity.rq->sched;
430-
if (sched->ready) {
430+
if (drm_sched_wqueue_ready(sched)) {
431431
ring = to_amdgpu_ring(entity->entity.rq->sched);
432432
atomic_dec(&adev->xcp_mgr->xcp[ring->xcp_id].ref_cnt);
433433
}

0 commit comments

Comments
 (0)