diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-03-23 17:19:01 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-04-04 13:24:49 -0400 |
commit | 06fe28567d45c8fb1c2a04f0f007fa5d750b849d (patch) | |
tree | 8da57e0a1ce577536e50a9e69ccc63641e3996db /drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c | |
parent | a07e10f494c158ae31d6187e9be3db409528a507 (diff) |
gpu: nvgpu: Move TSG IOCTL code to Linux module
Move TSG IOCTL specific code to Linux module. This clears most
Linux dependencies from tsg_gk20a.c.
Move also remaining file_operations declarations from channel_gk20a.h
to ioctl_channel.h.
JIRA NVGPU-32
Change-Id: Idcc2a525ebe12b30db46c3893a2735509c41ff39
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1330805
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c b/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c index 6aa376ea..cda9fb8d 100644 --- a/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c +++ b/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c | |||
@@ -24,6 +24,7 @@ | |||
24 | #include <nvgpu/kmem.h> | 24 | #include <nvgpu/kmem.h> |
25 | 25 | ||
26 | #include "ioctl_ctrl.h" | 26 | #include "ioctl_ctrl.h" |
27 | #include "ioctl_tsg.h" | ||
27 | #include "gk20a/gk20a.h" | 28 | #include "gk20a/gk20a.h" |
28 | #include "gk20a/fence_gk20a.h" | 29 | #include "gk20a/fence_gk20a.h" |
29 | 30 | ||
@@ -250,7 +251,7 @@ static int gk20a_ctrl_open_tsg(struct gk20a *g, | |||
250 | goto clean_up; | 251 | goto clean_up; |
251 | } | 252 | } |
252 | 253 | ||
253 | err = gk20a_tsg_open(g, file); | 254 | err = nvgpu_ioctl_tsg_open(g, file); |
254 | if (err) | 255 | if (err) |
255 | goto clean_up_file; | 256 | goto clean_up_file; |
256 | 257 | ||