diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/clk_gm20b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/clk_gm20b.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/clk_gm20b.c b/drivers/gpu/nvgpu/gm20b/clk_gm20b.c index 060a5775..b1ea7331 100644 --- a/drivers/gpu/nvgpu/gm20b/clk_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/clk_gm20b.c | |||
@@ -1305,8 +1305,12 @@ static long gm20b_round_rate(struct clk_hw *hw, unsigned long rate, | |||
1305 | { | 1305 | { |
1306 | struct clk_gk20a *clk = to_clk_gk20a(hw); | 1306 | struct clk_gk20a *clk = to_clk_gk20a(hw); |
1307 | u32 freq, old_freq; | 1307 | u32 freq, old_freq; |
1308 | unsigned long maxrate; | ||
1308 | struct pll tmp_pll; | 1309 | struct pll tmp_pll; |
1309 | 1310 | ||
1311 | maxrate = tegra_dvfs_get_maxrate(hw->clk); | ||
1312 | gpc_pll_params.max_freq = rate_gpu_to_gpc2clk(maxrate); | ||
1313 | |||
1310 | mutex_lock(&clk->clk_mutex); | 1314 | mutex_lock(&clk->clk_mutex); |
1311 | old_freq = clk->gpc_pll.freq; | 1315 | old_freq = clk->gpc_pll.freq; |
1312 | freq = rate_gpu_to_gpc2clk(rate); | 1316 | freq = rate_gpu_to_gpc2clk(rate); |