diff options
Diffstat (limited to 'drivers/gpu/nvgpu/os/linux/ioctl_tsg.c')
-rw-r--r-- | drivers/gpu/nvgpu/os/linux/ioctl_tsg.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/drivers/gpu/nvgpu/os/linux/ioctl_tsg.c b/drivers/gpu/nvgpu/os/linux/ioctl_tsg.c index c5079bd6..a26559f5 100644 --- a/drivers/gpu/nvgpu/os/linux/ioctl_tsg.c +++ b/drivers/gpu/nvgpu/os/linux/ioctl_tsg.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2014-2018, NVIDIA CORPORATION. All rights reserved. | 2 | * Copyright (c) 2014-2020, NVIDIA CORPORATION. All rights reserved. |
3 | * | 3 | * |
4 | * This program is free software; you can redistribute it and/or modify it | 4 | * This program is free software; you can redistribute it and/or modify it |
5 | * under the terms and conditions of the GNU General Public License, | 5 | * under the terms and conditions of the GNU General Public License, |
@@ -58,8 +58,7 @@ static int gk20a_tsg_bind_channel_fd(struct tsg_gk20a *tsg, int ch_fd) | |||
58 | static int gk20a_tsg_ioctl_bind_channel_ex(struct gk20a *g, | 58 | static int gk20a_tsg_ioctl_bind_channel_ex(struct gk20a *g, |
59 | struct tsg_gk20a *tsg, struct nvgpu_tsg_bind_channel_ex_args *arg) | 59 | struct tsg_gk20a *tsg, struct nvgpu_tsg_bind_channel_ex_args *arg) |
60 | { | 60 | { |
61 | struct nvgpu_os_linux *l = nvgpu_os_linux_from_gk20a(g); | 61 | struct nvgpu_sched_ctrl *sched = &g->sched_ctrl; |
62 | struct gk20a_sched_ctrl *sched = &l->sched_ctrl; | ||
63 | struct channel_gk20a *ch; | 62 | struct channel_gk20a *ch; |
64 | struct gr_gk20a *gr = &g->gr; | 63 | struct gr_gk20a *gr = &g->gr; |
65 | int err = 0; | 64 | int err = 0; |
@@ -484,8 +483,7 @@ int nvgpu_ioctl_tsg_dev_release(struct inode *inode, struct file *filp) | |||
484 | static int gk20a_tsg_ioctl_set_runlist_interleave(struct gk20a *g, | 483 | static int gk20a_tsg_ioctl_set_runlist_interleave(struct gk20a *g, |
485 | struct tsg_gk20a *tsg, struct nvgpu_runlist_interleave_args *arg) | 484 | struct tsg_gk20a *tsg, struct nvgpu_runlist_interleave_args *arg) |
486 | { | 485 | { |
487 | struct nvgpu_os_linux *l = nvgpu_os_linux_from_gk20a(g); | 486 | struct nvgpu_sched_ctrl *sched = &g->sched_ctrl; |
488 | struct gk20a_sched_ctrl *sched = &l->sched_ctrl; | ||
489 | u32 level = arg->level; | 487 | u32 level = arg->level; |
490 | int err; | 488 | int err; |
491 | 489 | ||
@@ -514,8 +512,7 @@ done: | |||
514 | static int gk20a_tsg_ioctl_set_timeslice(struct gk20a *g, | 512 | static int gk20a_tsg_ioctl_set_timeslice(struct gk20a *g, |
515 | struct tsg_gk20a *tsg, struct nvgpu_timeslice_args *arg) | 513 | struct tsg_gk20a *tsg, struct nvgpu_timeslice_args *arg) |
516 | { | 514 | { |
517 | struct nvgpu_os_linux *l = nvgpu_os_linux_from_gk20a(g); | 515 | struct nvgpu_sched_ctrl *sched = &g->sched_ctrl; |
518 | struct gk20a_sched_ctrl *sched = &l->sched_ctrl; | ||
519 | int err; | 516 | int err; |
520 | 517 | ||
521 | nvgpu_log(g, gpu_dbg_fn | gpu_dbg_sched, "tsgid=%u", tsg->tsgid); | 518 | nvgpu_log(g, gpu_dbg_fn | gpu_dbg_sched, "tsgid=%u", tsg->tsgid); |