From 45d0a9c711d50290eb3e8297ab9b5c4a5161f242 Mon Sep 17 00:00:00 2001 From: Konsta Holtta Date: Wed, 23 May 2018 11:10:46 +0300 Subject: gpu: nvgpu: remove empty gk20a_mm_debugfs_init gk20a_mm_debugfs_init() used to initialize one mm-specific debugfs knob, but now that there aren't any, delete the function and the related files. Change-Id: Ic3177945bbab501c506b5199b44c87450df75452 Signed-off-by: Konsta Holtta Reviewed-on: https://git-master.nvidia.com/r/1729530 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/Makefile | 1 - drivers/gpu/nvgpu/common/linux/debug.c | 2 -- drivers/gpu/nvgpu/common/linux/debug_mm.c | 22 ---------------------- drivers/gpu/nvgpu/common/linux/debug_mm.h | 21 --------------------- 4 files changed, 46 deletions(-) delete mode 100644 drivers/gpu/nvgpu/common/linux/debug_mm.c delete mode 100644 drivers/gpu/nvgpu/common/linux/debug_mm.h (limited to 'drivers') diff --git a/drivers/gpu/nvgpu/Makefile b/drivers/gpu/nvgpu/Makefile index 0aacc1e6..6b4fc505 100644 --- a/drivers/gpu/nvgpu/Makefile +++ b/drivers/gpu/nvgpu/Makefile @@ -146,7 +146,6 @@ nvgpu-$(CONFIG_DEBUG_FS) += \ common/linux/debug_ce.o \ common/linux/debug_pmu.o \ common/linux/debug_sched.o \ - common/linux/debug_mm.o \ common/linux/debug_allocator.o \ common/linux/debug_hal.o \ common/linux/debug_clk.o \ diff --git a/drivers/gpu/nvgpu/common/linux/debug.c b/drivers/gpu/nvgpu/common/linux/debug.c index 87b35dc1..ee93a901 100644 --- a/drivers/gpu/nvgpu/common/linux/debug.c +++ b/drivers/gpu/nvgpu/common/linux/debug.c @@ -16,7 +16,6 @@ #include "debug_ce.h" #include "debug_fifo.h" #include "debug_gr.h" -#include "debug_mm.h" #include "debug_allocator.h" #include "debug_kmem.h" #include "debug_pmu.h" @@ -433,7 +432,6 @@ void gk20a_debug_init(struct gk20a *g, const char *debugfs_symlink) gk20a_ce_debugfs_init(g); nvgpu_alloc_debugfs_init(g); nvgpu_hal_debugfs_init(g); - gk20a_mm_debugfs_init(g); gk20a_fifo_debugfs_init(g); gk20a_sched_debugfs_init(g); #ifdef CONFIG_NVGPU_TRACK_MEM_USAGE diff --git a/drivers/gpu/nvgpu/common/linux/debug_mm.c b/drivers/gpu/nvgpu/common/linux/debug_mm.c deleted file mode 100644 index 5a3510bf..00000000 --- a/drivers/gpu/nvgpu/common/linux/debug_mm.c +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (C) 2017 NVIDIA Corporation. All rights reserved. - * - * This software is licensed under the terms of the GNU General Public - * License version 2, as published by the Free Software Foundation, and - * may be copied, distributed, and modified under those terms. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - */ - -#include "debug_mm.h" -#include "os_linux.h" - -#include - -void gk20a_mm_debugfs_init(struct gk20a *g) -{ -} diff --git a/drivers/gpu/nvgpu/common/linux/debug_mm.h b/drivers/gpu/nvgpu/common/linux/debug_mm.h deleted file mode 100644 index bf7bc985..00000000 --- a/drivers/gpu/nvgpu/common/linux/debug_mm.h +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (C) 2017 NVIDIA Corporation. All rights reserved. - * - * This software is licensed under the terms of the GNU General Public - * License version 2, as published by the Free Software Foundation, and - * may be copied, distributed, and modified under those terms. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - */ - -#ifndef __NVGPU_DEBUG_MM_H__ -#define __NVGPU_DEBUG_MM_H__ - -struct gk20a; -void gk20a_mm_debugfs_init(struct gk20a *g); - -#endif /* __NVGPU_DEBUG_MM_H__ */ -- cgit v1.2.2