diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/ioctl_channel.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/ioctl_channel.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_channel.c b/drivers/gpu/nvgpu/common/linux/ioctl_channel.c index 8a87e4cb..4d4d1690 100644 --- a/drivers/gpu/nvgpu/common/linux/ioctl_channel.c +++ b/drivers/gpu/nvgpu/common/linux/ioctl_channel.c | |||
@@ -1125,6 +1125,10 @@ long gk20a_channel_ioctl(struct file *filp, | |||
1125 | gk20a_channel_trace_sched_param( | 1125 | gk20a_channel_trace_sched_param( |
1126 | trace_gk20a_channel_set_timeslice, ch); | 1126 | trace_gk20a_channel_set_timeslice, ch); |
1127 | break; | 1127 | break; |
1128 | case NVGPU_IOCTL_CHANNEL_GET_TIMESLICE: | ||
1129 | ((struct nvgpu_timeslice_args *)buf)->timeslice_us = | ||
1130 | gk20a_channel_get_timeslice(ch); | ||
1131 | break; | ||
1128 | case NVGPU_IOCTL_CHANNEL_SET_PREEMPTION_MODE: | 1132 | case NVGPU_IOCTL_CHANNEL_SET_PREEMPTION_MODE: |
1129 | if (ch->g->ops.gr.set_preemption_mode) { | 1133 | if (ch->g->ops.gr.set_preemption_mode) { |
1130 | err = gk20a_busy(ch->g); | 1134 | err = gk20a_busy(ch->g); |