summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2017-04-10 17:03:16 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-04-25 17:26:00 -0400
commit5714f5eaaf4715c9989e5c2bf732cdb9136b0fbe (patch)
tree65164fc80979817ae2a65ba20a0c9f1c8781f668 /drivers/gpu/nvgpu/gk20a/mm_gk20a.c
parent126c735d3015f515bde9f26d10b4e34d6e194e36 (diff)
gpu: nvgpu: Remove bools from nvgpu_mem
Replace a couple of boolean fields in nvgpu_mem with bits in a bitmap introduced in an earlier patch. JIRA NVGPU-12 JIRA NVGPU-30 Change-Id: Iffc31bd629cab9a37e5a4fd13377eb9090353410 Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: http://git-master/r/1464079 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/mm_gk20a.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
index 79aa44a5..00892e98 100644
--- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
@@ -1862,7 +1862,7 @@ int gk20a_vidmem_buf_alloc(struct gk20a *g, size_t bytes)
1862 if (!buf->mem) 1862 if (!buf->mem)
1863 goto err_kfree; 1863 goto err_kfree;
1864 1864
1865 buf->mem->user_mem = true; 1865 buf->mem->mem_flags |= NVGPU_MEM_FLAG_USER_MEM;
1866 1866
1867 err = nvgpu_dma_alloc_vid(g, bytes, buf->mem); 1867 err = nvgpu_dma_alloc_vid(g, bytes, buf->mem);
1868 if (err) 1868 if (err)