summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/nvgpu/os/linux/ioctl_ctrl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/os/linux/ioctl_ctrl.c b/drivers/gpu/nvgpu/os/linux/ioctl_ctrl.c
index 954b08b5..ee141ff8 100644
--- a/drivers/gpu/nvgpu/os/linux/ioctl_ctrl.c
+++ b/drivers/gpu/nvgpu/os/linux/ioctl_ctrl.c
@@ -239,6 +239,10 @@ static u64 nvgpu_ctrl_ioctl_gpu_characteristics_flags(struct gk20a *g)
239 ioctl_flags |= flags_mapping[i].ioctl_flag; 239 ioctl_flags |= flags_mapping[i].ioctl_flag;
240 } 240 }
241 241
242 if (!capable(CAP_SYS_NICE)) {
243 ioctl_flags &= ~NVGPU_GPU_FLAGS_SUPPORT_RESCHEDULE_RUNLIST;
244 }
245
242 return ioctl_flags; 246 return ioctl_flags;
243} 247}
244 248