diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2014-10-27 05:06:59 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:11:54 -0400 |
commit | 2d5ff668cbc6a932df2c9cf79627d1d340e5c2c0 (patch) | |
tree | 1d9bc4b774a9c2cea339891eaef3af5b87ee354d /drivers/gpu/nvgpu/gk20a/ltc_common.c | |
parent | 23a182aaa61d120c965f1bce09609cc14d4e14eb (diff) |
gpu: nvgpu: GR and LTC HAL to use const structs
Convert GR and LTC HALs to use const structs, and initialize them
with macros.
Bug 1567274
Change-Id: Ia3f24a5eccb27578d9cba69755f636818d11275c
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/590371
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/ltc_common.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/ltc_common.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/ltc_common.c b/drivers/gpu/nvgpu/gk20a/ltc_common.c index e0ab3f9b..badf640e 100644 --- a/drivers/gpu/nvgpu/gk20a/ltc_common.c +++ b/drivers/gpu/nvgpu/gk20a/ltc_common.c | |||
@@ -189,9 +189,9 @@ static void gk20a_ltc_init_cbc(struct gk20a *g, struct gr_gk20a *gr) | |||
189 | compbit_base_post_divide++; | 189 | compbit_base_post_divide++; |
190 | 190 | ||
191 | /* Bug 1477079 indicates sw adjustment on the posted divided base. */ | 191 | /* Bug 1477079 indicates sw adjustment on the posted divided base. */ |
192 | if (g->ops.ltc.cbc_fix_config) | 192 | if (g->ops.ltc->cbc_fix_config) |
193 | compbit_base_post_divide = | 193 | compbit_base_post_divide = |
194 | g->ops.ltc.cbc_fix_config(g, compbit_base_post_divide); | 194 | g->ops.ltc->cbc_fix_config(g, compbit_base_post_divide); |
195 | 195 | ||
196 | gk20a_writel(g, ltc_ltcs_ltss_cbc_base_r(), | 196 | gk20a_writel(g, ltc_ltcs_ltss_cbc_base_r(), |
197 | compbit_base_post_divide); | 197 | compbit_base_post_divide); |
@@ -204,7 +204,7 @@ static void gk20a_ltc_init_cbc(struct gk20a *g, struct gr_gk20a *gr) | |||
204 | 204 | ||
205 | gr->compbit_store.base_hw = compbit_base_post_divide; | 205 | gr->compbit_store.base_hw = compbit_base_post_divide; |
206 | 206 | ||
207 | g->ops.ltc.cbc_ctrl(g, gk20a_cbc_op_invalidate, | 207 | g->ops.ltc->cbc_ctrl(g, gk20a_cbc_op_invalidate, |
208 | 0, max_comptag_lines - 1); | 208 | 0, max_comptag_lines - 1); |
209 | 209 | ||
210 | } | 210 | } |