summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/mm/nvgpu_allocator.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/mm/nvgpu_allocator.c')
-rw-r--r--drivers/gpu/nvgpu/common/mm/nvgpu_allocator.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/mm/nvgpu_allocator.c b/drivers/gpu/nvgpu/common/mm/nvgpu_allocator.c
index 1646d2b1..bc8d1b55 100644
--- a/drivers/gpu/nvgpu/common/mm/nvgpu_allocator.c
+++ b/drivers/gpu/nvgpu/common/mm/nvgpu_allocator.c
@@ -114,6 +114,14 @@ void nvgpu_alloc_destroy(struct nvgpu_allocator *a)
114 memset(a, 0, sizeof(*a)); 114 memset(a, 0, sizeof(*a));
115} 115}
116 116
117#ifdef __KERNEL__
118void nvgpu_alloc_print_stats(struct nvgpu_allocator *__a,
119 struct seq_file *s, int lock)
120{
121 __a->ops->print_stats(__a, s, lock);
122}
123#endif
124
117/* 125/*
118 * Handle the common init stuff for a nvgpu_allocator. 126 * Handle the common init stuff for a nvgpu_allocator.
119 */ 127 */