diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-04-14 19:15:50 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-04-24 03:13:39 -0400 |
commit | e1c27d4e84d518bef88305d1ca848deb07433677 (patch) | |
tree | 1a81b03c60f914020dead7fe5e7ffb4325c233af /drivers/gpu/nvgpu/gv11b/hal_gv11b.c | |
parent | 7872900486bd31cf186930848adec46d0a13b68a (diff) |
gpu: nvgpu: gv11b: Use new clk HAL
Use the new clk HAL to request clock rate instead of direct calls
to Clock Framework. This cuts one direct dependency to Linux APIs.
Also change the HAL to not clear clk ops after they've been
initialized.
JIRA NVGPU-16
Change-Id: I1ab3eac8268f1f3f3305d49782c6a0eb57c6d617
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1463536
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/hal_gv11b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/hal_gv11b.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/hal_gv11b.c b/drivers/gpu/nvgpu/gv11b/hal_gv11b.c index 220d646b..7e2c35dc 100644 --- a/drivers/gpu/nvgpu/gv11b/hal_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/hal_gv11b.c | |||
@@ -182,7 +182,7 @@ int gv11b_init_hal(struct gk20a *g) | |||
182 | struct gpu_ops *gops = &g->ops; | 182 | struct gpu_ops *gops = &g->ops; |
183 | struct nvgpu_gpu_characteristics *c = &g->gpu_characteristics; | 183 | struct nvgpu_gpu_characteristics *c = &g->gpu_characteristics; |
184 | 184 | ||
185 | *gops = gv11b_ops; | 185 | gops->clock_gating = gv11b_ops.clock_gating; |
186 | 186 | ||
187 | /* boot in non-secure modes for time beeing */ | 187 | /* boot in non-secure modes for time beeing */ |
188 | gops->privsecurity = 0; | 188 | gops->privsecurity = 0; |