summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/amd/amdgpu
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2020-10-21 13:26:45 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2020-10-21 13:26:45 +0000
commit91d53422c7a89facb0c367bbd280be3c30b39871 (patch)
tree85e614eddc30e652abe90f5d8c95fb368247a18b /sys/dev/pci/drm/amd/amdgpu
parent34f473adeddc7cfcf173f708876443638c178176 (diff)
handle capable(CAP_SYS_NICE) for allowing high priority contexts
Diffstat (limited to 'sys/dev/pci/drm/amd/amdgpu')
-rw-r--r--sys/dev/pci/drm/amd/amdgpu/amdgpu_ctx.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_ctx.c b/sys/dev/pci/drm/amd/amdgpu/amdgpu_ctx.c
index e6305db6e44..c542d759091 100644
--- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_ctx.c
+++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_ctx.c
@@ -52,10 +52,8 @@ static int amdgpu_ctx_priority_permit(struct drm_file *filp,
if (priority <= DRM_SCHED_PRIORITY_NORMAL)
return 0;
-#ifdef notyet
if (capable(CAP_SYS_NICE))
return 0;
-#endif
if (drm_is_current_master(filp))
return 0;