summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
diff options
context:
space:
mode:
authorKonsta Holtta <kholtta@nvidia.com>2016-10-04 09:21:35 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2016-10-14 11:12:17 -0400
commita4e4466a0cb3cf3bca369ca09013d68fe8102baf (patch)
tree4c1dba42db80ac124e9be9a6b75f1774503b3480 /drivers/gpu/nvgpu/gk20a/mm_gk20a.h
parent6760e3c33125bfca0b9b37e802a80452159863a9 (diff)
gpu: nvgpu: track pending bytes for vidmem clears
Change clears_pending to bytes_pending and track accordingly the number of bytes to be freed instead of the number of buffers. This, atomically combined with the amount of space in the allocator, is the total amount of free memory available. Bug 200233138 Change-Id: Ibbb4e80a32728781ba19a74307d8a8ac1a4d7431 Signed-off-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-on: http://git-master/r/1231422 (cherry picked from commit 025e765f312c253b201ecf2dbbe0f4972fe1d4bc) Reviewed-on: http://git-master/r/1235957 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/mm_gk20a.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
index 75209063..b25a7789 100644
--- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
@@ -424,7 +424,7 @@ struct mm_gk20a {
424 struct mutex clear_list_mutex; 424 struct mutex clear_list_mutex;
425 425
426 struct work_struct clear_mem_worker; 426 struct work_struct clear_mem_worker;
427 atomic_t clears_pending; 427 atomic64_t bytes_pending;
428 } vidmem; 428 } vidmem;
429}; 429};
430 430