summaryrefslogtreecommitdiff
path: root/include/drm
diff options
context:
space:
mode:
authorLuben Tuikov <luben.tuikov@amd.com>2023-10-17 05:48:56 +0300
committerLuben Tuikov <luben.tuikov@amd.com>2023-10-18 03:35:38 +0300
commitfa8391ad68c16716e2c06ada397e99ceed2fb647 (patch)
tree2312210be5b76960e7a7ccc674153fae3f1e7899 /include/drm
parenteab0261967aeab528db4d0a51806df8209aec179 (diff)
downloadlinux-fa8391ad68c16716e2c06ada397e99ceed2fb647.tar.xz
gpu/drm: Eliminate DRM_SCHED_PRIORITY_UNSET
Eliminate DRM_SCHED_PRIORITY_UNSET, value of -2, whose only user was amdgpu. Furthermore, eliminate an index bug, in that when amdgpu boots, it calls drm_sched_entity_init() with DRM_SCHED_PRIORITY_UNSET, which uses it to index sched->sched_rq[]. Cc: Alex Deucher <Alexander.Deucher@amd.com> Cc: Christian König <christian.koenig@amd.com> Signed-off-by: Luben Tuikov <luben.tuikov@amd.com> Acked-by: Alex Deucher <Alexander.Deucher@amd.com> Link: https://lore.kernel.org/r/20231017035656.8211-2-luben.tuikov@amd.com
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/gpu_scheduler.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/drm/gpu_scheduler.h b/include/drm/gpu_scheduler.h
index f9544d9b670d..ac65f0626cfc 100644
--- a/include/drm/gpu_scheduler.h
+++ b/include/drm/gpu_scheduler.h
@@ -68,8 +68,7 @@ enum drm_sched_priority {
DRM_SCHED_PRIORITY_HIGH,
DRM_SCHED_PRIORITY_KERNEL,
- DRM_SCHED_PRIORITY_COUNT,
- DRM_SCHED_PRIORITY_UNSET = -2
+ DRM_SCHED_PRIORITY_COUNT
};
/* Used to chose between FIFO and RR jobs scheduling */