From f2b3ba605be987ed9cbeed0af17a687f89903854 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Tue, 2 Sep 2014 12:52:34 +0300 Subject: gpu: nvgpu: Fix max comptag calculation Fix order of calculation for max comptag line calculation. Bug 1549451 Change-Id: I13bf657f0f0b8aafa4d64dacacb74d7224fed379 Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/494657 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Deepak Nibade Reviewed-by: Shridhar Rasal --- drivers/gpu/nvgpu/gm20b/ltc_gm20b.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu') diff --git a/drivers/gpu/nvgpu/gm20b/ltc_gm20b.c b/drivers/gpu/nvgpu/gm20b/ltc_gm20b.c index 0548105f..788cff6b 100644 --- a/drivers/gpu/nvgpu/gm20b/ltc_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/ltc_gm20b.c @@ -72,7 +72,7 @@ static int gm20b_ltc_init_comptags(struct gk20a *g, struct gr_gk20a *gr) max_comptag_lines = (compbit_backing_size * comptags_per_cacheline) / - cacheline_size * slices_per_ltc * g->ltc_count; + (cacheline_size * slices_per_ltc * g->ltc_count); if (max_comptag_lines > hw_max_comptag_lines) max_comptag_lines = hw_max_comptag_lines; -- cgit v1.2.2