diff options
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/clk_gm20b.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/clk_gm20b.c b/drivers/gpu/nvgpu/gm20b/clk_gm20b.c index 223166d1..e5cc6352 100644 --- a/drivers/gpu/nvgpu/gm20b/clk_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/clk_gm20b.c | |||
@@ -204,7 +204,7 @@ static int clk_config_pll(struct clk_gk20a *clk, struct pll *pll, | |||
204 | if (vco_f >= min_vco_f && vco_f <= max_vco_f) { | 204 | if (vco_f >= min_vco_f && vco_f <= max_vco_f) { |
205 | lwv = (vco_f + (nvgpu_pl_to_div(pl) / 2)) | 205 | lwv = (vco_f + (nvgpu_pl_to_div(pl) / 2)) |
206 | / nvgpu_pl_to_div(pl); | 206 | / nvgpu_pl_to_div(pl); |
207 | delta = abs(lwv - target_clk_f); | 207 | delta = abs((s32)(lwv - target_clk_f)); |
208 | 208 | ||
209 | if (delta < best_delta) { | 209 | if (delta < best_delta) { |
210 | best_delta = delta; | 210 | best_delta = delta; |