aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/scheduler/gpu_scheduler.h
diff options
context:
space:
mode:
authorAndres Rodriguez <andresx7@gmail.com>2017-06-26 16:12:10 -0400
committerAlex Deucher <alexander.deucher@amd.com>2017-10-09 16:30:23 -0400
commitf3d19bf80d6c7bfe5922c09604a402ef176da41f (patch)
tree07f6527df19b67d0c8f5d9990bc1a55e2ba85963 /drivers/gpu/drm/amd/scheduler/gpu_scheduler.h
parentdrm/amd/sched: allow clients to edit an entity's rq v2 (diff)
downloadlinux-dev-f3d19bf80d6c7bfe5922c09604a402ef176da41f.tar.xz
linux-dev-f3d19bf80d6c7bfe5922c09604a402ef176da41f.zip
drm/amdgpu: introduce AMDGPU_CTX_PRIORITY_UNSET
Use _INVALID to identify bad parameters and _UNSET to represent the lack of interest in a specific value. Signed-off-by: Andres Rodriguez <andresx7@gmail.com> Acked-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/scheduler/gpu_scheduler.h')
-rw-r--r--drivers/gpu/drm/amd/scheduler/gpu_scheduler.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/scheduler/gpu_scheduler.h b/drivers/gpu/drm/amd/scheduler/gpu_scheduler.h
index 4b528f7abbfe..52c8e5447624 100644
--- a/drivers/gpu/drm/amd/scheduler/gpu_scheduler.h
+++ b/drivers/gpu/drm/amd/scheduler/gpu_scheduler.h
@@ -122,7 +122,8 @@ enum amd_sched_priority {
AMD_SCHED_PRIORITY_HIGH_HW,
AMD_SCHED_PRIORITY_KERNEL,
AMD_SCHED_PRIORITY_MAX,
- AMD_SCHED_PRIORITY_INVALID = -1
+ AMD_SCHED_PRIORITY_INVALID = -1,
+ AMD_SCHED_PRIORITY_UNSET = -2
};
/**