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 <[email protected]> Signed-off-by: Tvrtko Ursulin <[email protected]> Cc: Christian König <[email protected]> Cc: Danilo Krummrich <[email protected]> Cc: Matthew Brost <[email protected]> Cc: Philipp Stanner <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 2affe2b commit e996127

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)