summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm20b/ltc_gm20b.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/ltc_gm20b.c')
-rw-r--r--drivers/gpu/nvgpu/gm20b/ltc_gm20b.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/ltc_gm20b.c b/drivers/gpu/nvgpu/gm20b/ltc_gm20b.c
index 84c3dfcd..791cc45b 100644
--- a/drivers/gpu/nvgpu/gm20b/ltc_gm20b.c
+++ b/drivers/gpu/nvgpu/gm20b/ltc_gm20b.c
@@ -18,6 +18,7 @@
18#include "gk20a/gk20a.h" 18#include "gk20a/gk20a.h"
19 19
20#include <nvgpu/timers.h> 20#include <nvgpu/timers.h>
21#include <nvgpu/enabled.h>
21#include <nvgpu/bug.h> 22#include <nvgpu/bug.h>
22 23
23#include <nvgpu/hw/gm20b/hw_mc_gm20b.h> 24#include <nvgpu/hw/gm20b/hw_mc_gm20b.h>
@@ -82,7 +83,7 @@ static int gm20b_ltc_init_comptags(struct gk20a *g, struct gr_gk20a *gr)
82 gk20a_dbg_info("max comptag lines : %d", 83 gk20a_dbg_info("max comptag lines : %d",
83 max_comptag_lines); 84 max_comptag_lines);
84 85
85 if (g->is_fmodel) 86 if (nvgpu_is_enabled(g, NVGPU_IS_FMODEL))
86 err = gk20a_ltc_alloc_phys_cbc(g, compbit_backing_size); 87 err = gk20a_ltc_alloc_phys_cbc(g, compbit_backing_size);
87 else 88 else
88 err = gk20a_ltc_alloc_virt_cbc(g, compbit_backing_size); 89 err = gk20a_ltc_alloc_virt_cbc(g, compbit_backing_size);