summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/nvgpu/gk20a/gr_gk20a.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
index 27406f9e..d085e96f 100644
--- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
@@ -4626,6 +4626,10 @@ static int gk20a_init_gr_setup_sw(struct gk20a *g)
4626 4626
4627 gr->g = g; 4627 gr->g = g;
4628 4628
4629#if defined(CONFIG_GK20A_CYCLE_STATS)
4630 mutex_init(&g->gr.cs_lock);
4631#endif
4632
4629 err = gr_gk20a_init_gr_config(g, gr); 4633 err = gr_gk20a_init_gr_config(g, gr);
4630 if (err) 4634 if (err)
4631 goto clean_up; 4635 goto clean_up;
@@ -4662,10 +4666,6 @@ static int gk20a_init_gr_setup_sw(struct gk20a *g)
4662 mutex_init(&gr->ctx_mutex); 4666 mutex_init(&gr->ctx_mutex);
4663 spin_lock_init(&gr->ch_tlb_lock); 4667 spin_lock_init(&gr->ch_tlb_lock);
4664 4668
4665#if defined(CONFIG_GK20A_CYCLE_STATS)
4666 mutex_init(&g->gr.cs_lock);
4667#endif
4668
4669 gr->remove_support = gk20a_remove_gr_support; 4669 gr->remove_support = gk20a_remove_gr_support;
4670 gr->sw_ready = true; 4670 gr->sw_ready = true;
4671 4671