diff options
author | Aparna Das <aparnad@nvidia.com> | 2018-09-11 16:23:40 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-09-20 13:52:18 -0400 |
commit | 46477494b2f5d566a0c133746af00a3da4ee6b90 (patch) | |
tree | cf5b7e30d26bb493fe291a40fc95614ccab998f7 /drivers/gpu/nvgpu/os/linux/vgpu/gv11b | |
parent | c28e73ee2f92d1d287637a22d40d170b42771f96 (diff) |
gpu: nvgpu: vgpu: restructure vgpu clk implementation
Move OS agnostic parts of vgpu clk code out of os/linux specific
path. This includes implementation sending rpc commands to
RM Server. Move Linux specific vgpu clk code to platform vgpu files
keeping it consistent with native implementation.
Bug 2363882
Jira EVLR-3254
Change-Id: I0aae014ef16415bb356c81e9bfd76bc65206d9fd
Signed-off-by: Aparna Das <aparnad@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1820674
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/os/linux/vgpu/gv11b')
-rw-r--r-- | drivers/gpu/nvgpu/os/linux/vgpu/gv11b/platform_gv11b_vgpu_tegra.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/os/linux/vgpu/gv11b/platform_gv11b_vgpu_tegra.c b/drivers/gpu/nvgpu/os/linux/vgpu/gv11b/platform_gv11b_vgpu_tegra.c index 8eada9df..e662877d 100644 --- a/drivers/gpu/nvgpu/os/linux/vgpu/gv11b/platform_gv11b_vgpu_tegra.c +++ b/drivers/gpu/nvgpu/os/linux/vgpu/gv11b/platform_gv11b_vgpu_tegra.c | |||
@@ -19,10 +19,11 @@ | |||
19 | #include <nvgpu/nvhost.h> | 19 | #include <nvgpu/nvhost.h> |
20 | 20 | ||
21 | #include "gk20a/gk20a.h" | 21 | #include "gk20a/gk20a.h" |
22 | #include "os/linux/vgpu/clk_vgpu.h" | 22 | #include "vgpu/clk_vgpu.h" |
23 | #include "os/linux/platform_gk20a.h" | 23 | #include "os/linux/platform_gk20a.h" |
24 | #include "os/linux/os_linux.h" | 24 | #include "os/linux/os_linux.h" |
25 | #include "os/linux/vgpu/vgpu_linux.h" | 25 | #include "os/linux/vgpu/vgpu_linux.h" |
26 | #include "os/linux/vgpu/platform_vgpu_tegra.h" | ||
26 | 27 | ||
27 | static int gv11b_vgpu_probe(struct device *dev) | 28 | static int gv11b_vgpu_probe(struct device *dev) |
28 | { | 29 | { |
@@ -88,8 +89,8 @@ struct gk20a_platform gv11b_vgpu_tegra_platform = { | |||
88 | 89 | ||
89 | .probe = gv11b_vgpu_probe, | 90 | .probe = gv11b_vgpu_probe, |
90 | 91 | ||
91 | .clk_round_rate = vgpu_clk_round_rate, | 92 | .clk_round_rate = vgpu_plat_clk_round_rate, |
92 | .get_clk_freqs = vgpu_clk_get_freqs, | 93 | .get_clk_freqs = vgpu_plat_clk_get_freqs, |
93 | 94 | ||
94 | /* frequency scaling configuration */ | 95 | /* frequency scaling configuration */ |
95 | .devfreq_governor = "userspace", | 96 | .devfreq_governor = "userspace", |