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/gk20a.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/gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c index 85864bcd..226b5ae3 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a.c | |||
@@ -612,7 +612,7 @@ static irqreturn_t gk20a_intr_thread_stall(int irq, void *dev_id) | |||
612 | if (mc_intr_0 & mc_intr_0_priv_ring_pending_f()) | 612 | if (mc_intr_0 & mc_intr_0_priv_ring_pending_f()) |
613 | gk20a_priv_ring_isr(g); | 613 | gk20a_priv_ring_isr(g); |
614 | if (mc_intr_0 & mc_intr_0_ltc_pending_f()) | 614 | if (mc_intr_0 & mc_intr_0_ltc_pending_f()) |
615 | g->ops.ltc.isr(g); | 615 | g->ops.ltc->isr(g); |
616 | if (mc_intr_0 & mc_intr_0_pbus_pending_f()) | 616 | if (mc_intr_0 & mc_intr_0_pbus_pending_f()) |
617 | gk20a_pbus_isr(g); | 617 | gk20a_pbus_isr(g); |
618 | 618 | ||
@@ -880,8 +880,8 @@ static int gk20a_pm_finalize_poweron(struct device *dev) | |||
880 | goto done; | 880 | goto done; |
881 | } | 881 | } |
882 | 882 | ||
883 | if (g->ops.ltc.init_fs_state) | 883 | if (g->ops.ltc->init_fs_state) |
884 | g->ops.ltc.init_fs_state(g); | 884 | g->ops.ltc->init_fs_state(g); |
885 | 885 | ||
886 | err = gk20a_init_mm_support(g); | 886 | err = gk20a_init_mm_support(g); |
887 | if (err) { | 887 | if (err) { |
@@ -1817,7 +1817,7 @@ int gk20a_init_gpu_characteristics(struct gk20a *g) | |||
1817 | { | 1817 | { |
1818 | struct nvgpu_gpu_characteristics *gpu = &g->gpu_characteristics; | 1818 | struct nvgpu_gpu_characteristics *gpu = &g->gpu_characteristics; |
1819 | 1819 | ||
1820 | gpu->L2_cache_size = g->ops.ltc.determine_L2_size_bytes(g); | 1820 | gpu->L2_cache_size = g->ops.ltc->determine_L2_size_bytes(g); |
1821 | gpu->on_board_video_memory_size = 0; /* integrated GPU */ | 1821 | gpu->on_board_video_memory_size = 0; /* integrated GPU */ |
1822 | 1822 | ||
1823 | gpu->num_gpc = g->gr.gpc_count; | 1823 | gpu->num_gpc = g->gr.gpc_count; |