diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2016-11-09 18:54:27 -0500 |
---|---|---|
committer | Deepak Nibade <dnibade@nvidia.com> | 2016-12-27 04:56:51 -0500 |
commit | d8da1d64381bb1265e194d81cb02673efa6ca54c (patch) | |
tree | fb69a0716c36659fc48be6ed0ce9ccc7c3bf96f3 /drivers/gpu/nvgpu/clk | |
parent | 6579c1ec6fbe9d8bbd0c5da5dfaa51c02402527b (diff) |
gpu: nvgpu: Fix signed comparison bugs
Fix small problems related to signed versus unsigned comparisons
throughout the driver. Bump up the warning level to prevent
such problems from occuring in future.
Change-Id: Ib7026728ef0e8c3c9e68956fc9794ec3a786a8a2
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1252069
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/clk')
-rw-r--r-- | drivers/gpu/nvgpu/clk/clk_mclk.c | 2 |
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; |