summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c')
-rw-r--r--drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c b/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c
index 9f45c929..c198f9f1 100644
--- a/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c
+++ b/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c
@@ -312,14 +312,7 @@ static void gp10b_tegra_postscale(struct device *pdev,
312 312
313 gk20a_dbg_fn(""); 313 gk20a_dbg_fn("");
314 if (profile && !gp10b_tegra_is_railgated(pdev)) { 314 if (profile && !gp10b_tegra_is_railgated(pdev)) {
315 unsigned long emc_scale; 315 emc_rate = (freq * EMC_BW_RATIO * g->emc3d_ratio) / 1000;
316
317 if (freq <= gp10b_freq_table[0])
318 emc_scale = 0;
319 else
320 emc_scale = g->emc3d_ratio;
321
322 emc_rate = (freq * EMC_BW_RATIO * emc_scale) / 1000;
323 316
324 if (emc_rate > tegra_bwmgr_get_max_emc_rate()) 317 if (emc_rate > tegra_bwmgr_get_max_emc_rate())
325 emc_rate = tegra_bwmgr_get_max_emc_rate(); 318 emc_rate = tegra_bwmgr_get_max_emc_rate();