diff options
author | Nitin Kumbhar <nkumbhar@nvidia.com> | 2018-08-13 00:39:04 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-09-05 07:51:43 -0400 |
commit | bcdac829f44afc1b08941c507e691866f3a9cb38 (patch) | |
tree | 12a4e0378a7ea5bed584ee9c87b16d047f943886 /drivers/gpu/nvgpu/os/linux/os_ops_gp106.c | |
parent | 0406900ca944305f9713905f4d7363fc2d9cbbea (diff) |
gpu: nvgpu: move therm debugfs to linux
Move debugfs related code of therm from common driver to linux
specific part of the driver. gp106_therm_debugfs_init()
is updated to use nvgpu_os_linux_ops.
This also affects gv100 as gp106_therm_debugfs_init is used
for gv100 as well.
JIRA NVGPU-603
Change-Id: Ia293d14599bc0c91fd1e917b5a430bd8f3d96e56
Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1797906
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/os/linux/os_ops_gp106.c')
-rw-r--r-- | drivers/gpu/nvgpu/os/linux/os_ops_gp106.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/os/linux/os_ops_gp106.c b/drivers/gpu/nvgpu/os/linux/os_ops_gp106.c index 13ce73e6..662f4551 100644 --- a/drivers/gpu/nvgpu/os/linux/os_ops_gp106.c +++ b/drivers/gpu/nvgpu/os/linux/os_ops_gp106.c | |||
@@ -17,14 +17,19 @@ | |||
17 | #include "os_linux.h" | 17 | #include "os_linux.h" |
18 | 18 | ||
19 | #include "debug_clk_gp106.h" | 19 | #include "debug_clk_gp106.h" |
20 | #include "debug_therm_gp106.h" | ||
20 | 21 | ||
21 | static struct nvgpu_os_linux_ops gp106_os_linux_ops = { | 22 | static struct nvgpu_os_linux_ops gp106_os_linux_ops = { |
22 | .clk = { | 23 | .clk = { |
23 | .init_debugfs = gp106_clk_init_debugfs, | 24 | .init_debugfs = gp106_clk_init_debugfs, |
24 | }, | 25 | }, |
26 | .therm = { | ||
27 | .init_debugfs = gp106_therm_init_debugfs, | ||
28 | }, | ||
25 | }; | 29 | }; |
26 | 30 | ||
27 | void nvgpu_gp106_init_os_ops(struct nvgpu_os_linux *l) | 31 | void nvgpu_gp106_init_os_ops(struct nvgpu_os_linux *l) |
28 | { | 32 | { |
29 | l->ops.clk = gp106_os_linux_ops.clk; | 33 | l->ops.clk = gp106_os_linux_ops.clk; |
34 | l->ops.therm = gp106_os_linux_ops.therm; | ||
30 | } | 35 | } |