summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/kmem_priv.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/kmem_priv.h')
-rw-r--r--drivers/gpu/nvgpu/common/linux/kmem_priv.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/kmem_priv.h b/drivers/gpu/nvgpu/common/linux/kmem_priv.h
index cd58ac28..d3abb378 100644
--- a/drivers/gpu/nvgpu/common/linux/kmem_priv.h
+++ b/drivers/gpu/nvgpu/common/linux/kmem_priv.h
@@ -18,6 +18,7 @@
18#define __KMEM_PRIV_H__ 18#define __KMEM_PRIV_H__
19 19
20#include <nvgpu/rbtree.h> 20#include <nvgpu/rbtree.h>
21#include <nvgpu/lock.h>
21 22
22#define __pstat(s, fmt, msg...) \ 23#define __pstat(s, fmt, msg...) \
23 do { \ 24 do { \
@@ -78,7 +79,7 @@ struct nvgpu_mem_alloc_tracker {
78 const char *name; 79 const char *name;
79 struct nvgpu_kmem_cache *allocs_cache; 80 struct nvgpu_kmem_cache *allocs_cache;
80 struct nvgpu_rbtree_node *allocs; 81 struct nvgpu_rbtree_node *allocs;
81 struct mutex lock; 82 struct nvgpu_mutex lock;
82 83
83 u64 bytes_alloced; 84 u64 bytes_alloced;
84 u64 bytes_freed; 85 u64 bytes_freed;