diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/sched.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/sched.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/sched.c b/drivers/gpu/nvgpu/common/linux/sched.c index fc3f6ed8..e6211790 100644 --- a/drivers/gpu/nvgpu/common/linux/sched.c +++ b/drivers/gpu/nvgpu/common/linux/sched.c | |||
@@ -198,15 +198,10 @@ static int gk20a_sched_dev_ioctl_get_params(struct gk20a_sched_ctrl *sched, | |||
198 | arg->runlist_interleave = tsg->interleave_level; | 198 | arg->runlist_interleave = tsg->interleave_level; |
199 | arg->timeslice = tsg->timeslice_us; | 199 | arg->timeslice = tsg->timeslice_us; |
200 | 200 | ||
201 | if (tsg->tsg_gr_ctx) { | 201 | arg->graphics_preempt_mode = |
202 | arg->graphics_preempt_mode = | 202 | tsg->gr_ctx.graphics_preempt_mode; |
203 | tsg->tsg_gr_ctx->graphics_preempt_mode; | 203 | arg->compute_preempt_mode = |
204 | arg->compute_preempt_mode = | 204 | tsg->gr_ctx.compute_preempt_mode; |
205 | tsg->tsg_gr_ctx->compute_preempt_mode; | ||
206 | } else { | ||
207 | arg->graphics_preempt_mode = 0; | ||
208 | arg->compute_preempt_mode = 0; | ||
209 | } | ||
210 | 205 | ||
211 | nvgpu_ref_put(&tsg->refcount, nvgpu_ioctl_tsg_release); | 206 | nvgpu_ref_put(&tsg->refcount, nvgpu_ioctl_tsg_release); |
212 | 207 | ||