From 87f42744e0821d54eff7bf0bb863c7e53063e5c1 Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Tue, 28 Nov 2017 02:26:31 -0800 Subject: gpu: nvgpu: initialize gr->max_comptag_mem in linux We initialize gr->max_comptag_mem in common code and with a global variable declared in Move this linux specific dependency to linux specific files i.e. initialize gr->max_comptag_mem during linux specific probe functions Jira NVGPU-414 Change-Id: I9415938bf1288b24950ba7ecc71abee3162dae64 Signed-off-by: Deepak Nibade Reviewed-on: https://git-master.nvidia.com/r/1606195 Reviewed-by: svc-mobile-coverity GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.c') diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c index b3969b60..8a6db92c 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c @@ -4820,9 +4820,6 @@ static int gk20a_init_gr_setup_sw(struct gk20a *g) if (err) goto clean_up; - gk20a_dbg_info("total ram pages : %lu", totalram_pages); - gr->max_comptag_mem = totalram_pages - >> (10 - (PAGE_SHIFT - 10)); err = g->ops.ltc.init_comptags(g, gr); if (err) goto clean_up; -- cgit v1.2.2