summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/ioctl_tsg.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/ioctl_tsg.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/ioctl_tsg.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_tsg.c b/drivers/gpu/nvgpu/common/linux/ioctl_tsg.c
index eb223382..b17d7e74 100644
--- a/drivers/gpu/nvgpu/common/linux/ioctl_tsg.c
+++ b/drivers/gpu/nvgpu/common/linux/ioctl_tsg.c
@@ -296,33 +296,6 @@ int nvgpu_ioctl_tsg_dev_release(struct inode *inode, struct file *filp)
296 return 0; 296 return 0;
297} 297}
298 298
299static int gk20a_tsg_ioctl_set_priority(struct gk20a *g,
300 struct tsg_gk20a *tsg, struct nvgpu_set_priority_args *arg)
301{
302 struct nvgpu_os_linux *l = nvgpu_os_linux_from_gk20a(g);
303 struct gk20a_sched_ctrl *sched = &l->sched_ctrl;
304 int err;
305
306 nvgpu_mutex_acquire(&sched->control_lock);
307 if (sched->control_locked) {
308 err = -EPERM;
309 goto done;
310 }
311
312 err = gk20a_busy(g);
313 if (err) {
314 nvgpu_err(g, "failed to power on gpu");
315 goto done;
316 }
317
318 err = gk20a_tsg_set_priority(g, tsg, arg->priority);
319
320 gk20a_idle(g);
321done:
322 nvgpu_mutex_release(&sched->control_lock);
323 return err;
324}
325
326static int gk20a_tsg_ioctl_set_runlist_interleave(struct gk20a *g, 299static int gk20a_tsg_ioctl_set_runlist_interleave(struct gk20a *g,
327 struct tsg_gk20a *tsg, struct nvgpu_runlist_interleave_args *arg) 300 struct tsg_gk20a *tsg, struct nvgpu_runlist_interleave_args *arg)
328{ 301{
@@ -475,13 +448,6 @@ long nvgpu_ioctl_tsg_dev_ioctl(struct file *filp, unsigned int cmd,
475 break; 448 break;
476 } 449 }
477 450
478 case NVGPU_IOCTL_TSG_SET_PRIORITY:
479 {
480 err = gk20a_tsg_ioctl_set_priority(g, tsg,
481 (struct nvgpu_set_priority_args *)buf);
482 break;
483 }
484
485 case NVGPU_IOCTL_TSG_EVENT_ID_CTRL: 451 case NVGPU_IOCTL_TSG_EVENT_ID_CTRL:
486 { 452 {
487 err = gk20a_tsg_event_id_ctrl(g, tsg, 453 err = gk20a_tsg_event_id_ctrl(g, tsg,