diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.c index 32c95e2f..b0a90fc8 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.c | |||
@@ -23,6 +23,7 @@ | |||
23 | #include <nvgpu/kmem.h> | 23 | #include <nvgpu/kmem.h> |
24 | #include <nvgpu/log.h> | 24 | #include <nvgpu/log.h> |
25 | #include <nvgpu/firmware.h> | 25 | #include <nvgpu/firmware.h> |
26 | #include <nvgpu/enabled.h> | ||
26 | 27 | ||
27 | #include "gk20a.h" | 28 | #include "gk20a.h" |
28 | #include "gr_ctx_gk20a.h" | 29 | #include "gr_ctx_gk20a.h" |
@@ -442,7 +443,7 @@ done: | |||
442 | 443 | ||
443 | int gr_gk20a_init_ctx_vars(struct gk20a *g, struct gr_gk20a *gr) | 444 | int gr_gk20a_init_ctx_vars(struct gk20a *g, struct gr_gk20a *gr) |
444 | { | 445 | { |
445 | if (g->is_fmodel) | 446 | if (nvgpu_is_enabled(g, NVGPU_IS_FMODEL)) |
446 | return gr_gk20a_init_ctx_vars_sim(g, gr); | 447 | return gr_gk20a_init_ctx_vars_sim(g, gr); |
447 | else | 448 | else |
448 | return gr_gk20a_init_ctx_vars_fw(g, gr); | 449 | return gr_gk20a_init_ctx_vars_fw(g, gr); |