summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/mm/page_allocator.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/mm/page_allocator.c')
-rw-r--r--drivers/gpu/nvgpu/common/mm/page_allocator.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/mm/page_allocator.c b/drivers/gpu/nvgpu/common/mm/page_allocator.c
index 6fbdbedd..2ffff63d 100644
--- a/drivers/gpu/nvgpu/common/mm/page_allocator.c
+++ b/drivers/gpu/nvgpu/common/mm/page_allocator.c
@@ -742,6 +742,7 @@ static void nvgpu_page_allocator_destroy(struct nvgpu_allocator *__a)
742 alloc_unlock(__a); 742 alloc_unlock(__a);
743} 743}
744 744
745#ifdef CONFIG_DEBUG_FS
745static void nvgpu_page_print_stats(struct nvgpu_allocator *__a, 746static void nvgpu_page_print_stats(struct nvgpu_allocator *__a,
746 struct seq_file *s, int lock) 747 struct seq_file *s, int lock)
747{ 748{
@@ -788,6 +789,7 @@ static void nvgpu_page_print_stats(struct nvgpu_allocator *__a,
788 if (lock) 789 if (lock)
789 alloc_unlock(__a); 790 alloc_unlock(__a);
790} 791}
792#endif
791 793
792static const struct nvgpu_allocator_ops page_ops = { 794static const struct nvgpu_allocator_ops page_ops = {
793 .alloc = nvgpu_page_alloc, 795 .alloc = nvgpu_page_alloc,
@@ -807,7 +809,9 @@ static const struct nvgpu_allocator_ops page_ops = {
807 809
808 .fini = nvgpu_page_allocator_destroy, 810 .fini = nvgpu_page_allocator_destroy,
809 811
812#ifdef CONFIG_DEBUG_FS
810 .print_stats = nvgpu_page_print_stats, 813 .print_stats = nvgpu_page_print_stats,
814#endif
811}; 815};
812 816
813/* 817/*