summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/mm_gk20a.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
index 556cb234..13698cd7 100644
--- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
@@ -36,6 +36,8 @@
36#include <nvgpu/rbtree.h> 36#include <nvgpu/rbtree.h>
37#include <nvgpu/kref.h> 37#include <nvgpu/kref.h>
38#include <nvgpu/atomic.h> 38#include <nvgpu/atomic.h>
39#include <nvgpu/cond.h>
40#include <nvgpu/thread.h>
39 41
40struct nvgpu_pd_cache; 42struct nvgpu_pd_cache;
41 43
@@ -272,7 +274,11 @@ struct mm_gk20a {
272 struct nvgpu_list_node clear_list_head; 274 struct nvgpu_list_node clear_list_head;
273 struct nvgpu_mutex clear_list_mutex; 275 struct nvgpu_mutex clear_list_mutex;
274 276
275 struct work_struct clear_mem_worker; 277 struct nvgpu_cond clearing_thread_cond;
278 struct nvgpu_thread clearing_thread;
279 struct nvgpu_mutex clearing_thread_lock;
280 nvgpu_atomic_t pause_count;
281
276 nvgpu_atomic64_t bytes_pending; 282 nvgpu_atomic64_t bytes_pending;
277 } vidmem; 283 } vidmem;
278}; 284};