diff options
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/tsg_vgpu.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/tsg_vgpu.c b/drivers/gpu/nvgpu/vgpu/tsg_vgpu.c index 9daf9e6d..e668d1ed 100644 --- a/drivers/gpu/nvgpu/vgpu/tsg_vgpu.c +++ b/drivers/gpu/nvgpu/vgpu/tsg_vgpu.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. | 2 | * Copyright (c) 2016-2017, 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, |
@@ -114,6 +114,8 @@ static int vgpu_tsg_set_timeslice(struct tsg_gk20a *tsg, u32 timeslice) | |||
114 | err = vgpu_comm_sendrecv(&msg, sizeof(msg), sizeof(msg)); | 114 | err = vgpu_comm_sendrecv(&msg, sizeof(msg), sizeof(msg)); |
115 | err = err ? err : msg.ret; | 115 | err = err ? err : msg.ret; |
116 | WARN_ON(err); | 116 | WARN_ON(err); |
117 | if (!err) | ||
118 | tsg->timeslice_us = timeslice; | ||
117 | 119 | ||
118 | return err; | 120 | return err; |
119 | } | 121 | } |