summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/clk/clk_mclk.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/clk/clk_mclk.c')
-rw-r--r--drivers/gpu/nvgpu/clk/clk_mclk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/clk/clk_mclk.c b/drivers/gpu/nvgpu/clk/clk_mclk.c
index 7b15767b..ea238c15 100644
--- a/drivers/gpu/nvgpu/clk/clk_mclk.c
+++ b/drivers/gpu/nvgpu/clk/clk_mclk.c
@@ -2347,7 +2347,7 @@ int clk_mclkseq_change_mclk_gddr5(struct gk20a *g, enum gk20a_mclk_speed speed)
2347 mclk->switch_std = 0; 2347 mclk->switch_std = 0;
2348 } else { 2348 } else {
2349 s64 prev_avg; 2349 s64 prev_avg;
2350 u64 curr = (t1-t0)/1000; 2350 s64 curr = (t1-t0)/1000;
2351 2351
2352 mclk->switch_max = curr > mclk->switch_max ? 2352 mclk->switch_max = curr > mclk->switch_max ?
2353 curr : mclk->switch_max; 2353 curr : mclk->switch_max;