diff options
author | Nitin Kumbhar <nkumbhar@nvidia.com> | 2018-08-10 01:04:17 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-08-29 23:34:34 -0400 |
commit | 94eebcdd8cacc9a2dc20485e0d3d15fc51507c2c (patch) | |
tree | d69221db59a680e1e45f44f397b8106f2db34816 /drivers/gpu/nvgpu/os/linux/module.c | |
parent | 18e060227da92e4df8f2e5400fec7f6d7bdaad4a (diff) |
gpu: nvgpu: linux: move os ops to a common file
Currently only cde uses nvgpu_os_linux_ops to set up linux
specific ops. Move nvgpu_os_linux_ops of a gpu to a common
file so that those can be reused for other os ops of that
gpu.
JIRA NVGPU-603
Change-Id: Icf1ff275d3832229137f730fe8183b8015e82673
Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1797902
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/os/linux/module.c')
-rw-r--r-- | drivers/gpu/nvgpu/os/linux/module.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/gpu/nvgpu/os/linux/module.c b/drivers/gpu/nvgpu/os/linux/module.c index c07faf08..3be879be 100644 --- a/drivers/gpu/nvgpu/os/linux/module.c +++ b/drivers/gpu/nvgpu/os/linux/module.c | |||
@@ -56,6 +56,7 @@ | |||
56 | #include "ioctl.h" | 56 | #include "ioctl.h" |
57 | 57 | ||
58 | #include "os_linux.h" | 58 | #include "os_linux.h" |
59 | #include "os_ops.h" | ||
59 | #include "ctxsw_trace.h" | 60 | #include "ctxsw_trace.h" |
60 | #include "driver_common.h" | 61 | #include "driver_common.h" |
61 | #include "channel.h" | 62 | #include "channel.h" |
@@ -183,17 +184,6 @@ static int gk20a_restore_registers(struct gk20a *g) | |||
183 | return 0; | 184 | return 0; |
184 | } | 185 | } |
185 | 186 | ||
186 | static int nvgpu_init_os_linux_ops(struct nvgpu_os_linux *l) | ||
187 | { | ||
188 | int err = 0; | ||
189 | |||
190 | #ifdef CONFIG_NVGPU_SUPPORT_CDE | ||
191 | err = nvgpu_cde_init_ops(l); | ||
192 | #endif | ||
193 | |||
194 | return err; | ||
195 | } | ||
196 | |||
197 | int nvgpu_finalize_poweron_linux(struct nvgpu_os_linux *l) | 187 | int nvgpu_finalize_poweron_linux(struct nvgpu_os_linux *l) |
198 | { | 188 | { |
199 | struct gk20a *g = &l->g; | 189 | struct gk20a *g = &l->g; |