From 8f2f979428e1e5a4ff71d91e30ba17813e6ee7be Mon Sep 17 00:00:00 2001 From: Alex Waterman Date: Mon, 21 Aug 2017 13:29:46 -0700 Subject: gpu: nvgpu: cleanup allocator debugging Remove debugging features that did not really get used and make the debugging code use the nvgpu_log() functionality. This ties the allocator debugging into the larger nvgpu debug framework. Also modify many of the places CONFIG_DEBUG_FS was used to conditionally compile allocator debug code to use __KERNEL__ instead. This is because that debug code can still be called even when debugfs is not present in Linux. Change-Id: I112ebe1cae22d6f8db96d023993498093e18d74a Signed-off-by: Alex Waterman Reviewed-on: https://git-master.nvidia.com/r/1544439 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/linux/debug_allocator.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'drivers/gpu/nvgpu/common/linux/debug_allocator.c') diff --git a/drivers/gpu/nvgpu/common/linux/debug_allocator.c b/drivers/gpu/nvgpu/common/linux/debug_allocator.c index 766c8486..91ae0512 100644 --- a/drivers/gpu/nvgpu/common/linux/debug_allocator.c +++ b/drivers/gpu/nvgpu/common/linux/debug_allocator.c @@ -20,12 +20,6 @@ #include -void nvgpu_alloc_print_stats(struct nvgpu_allocator *__a, - struct seq_file *s, int lock) -{ - __a->ops->print_stats(__a, s, lock); -} - static int __alloc_show(struct seq_file *s, void *unused) { struct nvgpu_allocator *a = s->private; -- cgit v1.2.2