diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2014-10-31 05:10:51 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:11:58 -0400 |
commit | b1088fe769ea900438a39c9e9920157b4ba7436a (patch) | |
tree | 40dd308c358371a3bd426431bb70e8a24f1b549b /drivers/gpu | |
parent | 3c6a6376de57da36ab40bfc10bb89018a24a50d6 (diff) |
gpu: nvgpu: Use generic clk_get_rate
Instead of gk20a_clk_get_rate() use the generic clk_get_rate().
Bug 1567274
Change-Id: If955790408d2f4a5d917ea3993573ac3f254c7d3
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/592094
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c b/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c index a4b7fe18..e9530844 100644 --- a/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c +++ b/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c | |||
@@ -170,7 +170,7 @@ static void gk20a_tegra_postscale(struct platform_device *pdev, | |||
170 | struct gk20a_emc_params *emc_params = profile->private_data; | 170 | struct gk20a_emc_params *emc_params = profile->private_data; |
171 | struct gk20a *g = get_gk20a(pdev); | 171 | struct gk20a *g = get_gk20a(pdev); |
172 | 172 | ||
173 | long after = gk20a_clk_get_rate(g); | 173 | long after = clk_get_rate(g->clk.tegra_clk); |
174 | long emc_target = gk20a_tegra_get_emc_rate(g, emc_params, after); | 174 | long emc_target = gk20a_tegra_get_emc_rate(g, emc_params, after); |
175 | 175 | ||
176 | clk_set_rate(platform->clk[2], emc_target); | 176 | clk_set_rate(platform->clk[2], emc_target); |
@@ -188,7 +188,7 @@ static void gk20a_tegra_prescale(struct platform_device *pdev) | |||
188 | u32 avg = 0; | 188 | u32 avg = 0; |
189 | 189 | ||
190 | gk20a_pmu_load_norm(g, &avg); | 190 | gk20a_pmu_load_norm(g, &avg); |
191 | tegra_edp_notify_gpu_load(avg, gk20a_clk_get_rate(g)); | 191 | tegra_edp_notify_gpu_load(avg, clk_get_rate(g->clk.tegra_clk)); |
192 | } | 192 | } |
193 | 193 | ||
194 | /* | 194 | /* |