From b1088fe769ea900438a39c9e9920157b4ba7436a Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Fri, 31 Oct 2014 11:10:51 +0200 Subject: 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 Reviewed-on: http://git-master/r/592094 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Arto Merilainen --- drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a') 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, struct gk20a_emc_params *emc_params = profile->private_data; struct gk20a *g = get_gk20a(pdev); - long after = gk20a_clk_get_rate(g); + long after = clk_get_rate(g->clk.tegra_clk); long emc_target = gk20a_tegra_get_emc_rate(g, emc_params, after); clk_set_rate(platform->clk[2], emc_target); @@ -188,7 +188,7 @@ static void gk20a_tegra_prescale(struct platform_device *pdev) u32 avg = 0; gk20a_pmu_load_norm(g, &avg); - tegra_edp_notify_gpu_load(avg, gk20a_clk_get_rate(g)); + tegra_edp_notify_gpu_load(avg, clk_get_rate(g->clk.tegra_clk)); } /* -- cgit v1.2.2