summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2015-03-20 12:43:26 -0400
committerDan Willemsen <dwillemsen@nvidia.com>2015-04-04 22:01:53 -0400
commit42d17018b442850f246696364d79a2ae11350a12 (patch)
tree0ba6ca38145df8cab758cfa2b7bf50b5f825884a /drivers/gpu/nvgpu/gk20a/mm_gk20a.c
parent90e42e424aba21aed9aa380795cd564cfe97da28 (diff)
gpu: nvgpu: Use common allocator for compbit store
Reduce amount of duplicate code around memory allocation by using common helpers, and common data structure for storing results of allocations. Bug 1605769 Change-Id: I7c1662b669ed8c86465254f6001e536141051ee5 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/720435
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/mm_gk20a.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
index 036f1472..a01836eb 100644
--- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
@@ -1560,7 +1560,6 @@ int gk20a_gmmu_alloc_attr(struct gk20a *g, enum dma_attr attr, size_t size, stru
1560 goto fail_free; 1560 goto fail_free;
1561 1561
1562 mem->size = size; 1562 mem->size = size;
1563 memset(mem->cpu_va, 0, size);
1564 1563
1565 gk20a_dbg_fn("done"); 1564 gk20a_dbg_fn("done");
1566 1565