diff options
author | Andres Rodriguez <andresx7@gmail.com> | 2017-06-26 16:12:10 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-10-09 16:30:23 -0400 |
commit | f3d19bf80d6c7bfe5922c09604a402ef176da41f (patch) | |
tree | 07f6527df19b67d0c8f5d9990bc1a55e2ba85963 /drivers/gpu/drm/amd/scheduler/gpu_scheduler.h | |
parent | 9ebbaabee858dcecb251d64ecb1e639a1590fff6 (diff) | |
download | linux-f3d19bf80d6c7bfe5922c09604a402ef176da41f.tar.gz linux-f3d19bf80d6c7bfe5922c09604a402ef176da41f.tar.bz2 linux-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.h | 3 |
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 }; /** |