summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/ltc_gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/ltc_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/ltc_gk20a.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/ltc_gk20a.c b/drivers/gpu/nvgpu/gk20a/ltc_gk20a.c
index 103952ca..5db48ae7 100644
--- a/drivers/gpu/nvgpu/gk20a/ltc_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/ltc_gk20a.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * GK20A L2 2 * GK20A L2
3 * 3 *
4 * Copyright (c) 2011-2016, NVIDIA CORPORATION. All rights reserved. 4 * Copyright (c) 2011-2017, NVIDIA CORPORATION. All rights reserved.
5 * 5 *
6 * This program is free software; you can redistribute it and/or modify it 6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License, 7 * under the terms and conditions of the GNU General Public License,
@@ -120,7 +120,7 @@ static int gk20a_ltc_cbc_ctrl(struct gk20a *g, enum gk20a_cbc_op op,
120 if (gr->compbit_store.mem.size == 0) 120 if (gr->compbit_store.mem.size == 0)
121 return 0; 121 return 0;
122 122
123 mutex_lock(&g->mm.l2_op_lock); 123 nvgpu_mutex_acquire(&g->mm.l2_op_lock);
124 124
125 if (op == gk20a_cbc_op_clear) { 125 if (op == gk20a_cbc_op_clear) {
126 gk20a_writel(g, ltc_ltcs_ltss_cbc_ctrl2_r(), 126 gk20a_writel(g, ltc_ltcs_ltss_cbc_ctrl2_r(),
@@ -168,7 +168,7 @@ static int gk20a_ltc_cbc_ctrl(struct gk20a *g, enum gk20a_cbc_op op,
168 } 168 }
169out: 169out:
170 trace_gk20a_ltc_cbc_ctrl_done(dev_name(g->dev)); 170 trace_gk20a_ltc_cbc_ctrl_done(dev_name(g->dev));
171 mutex_unlock(&g->mm.l2_op_lock); 171 nvgpu_mutex_release(&g->mm.l2_op_lock);
172 return err; 172 return err;
173} 173}
174 174