From dd739fcb039d51606e9a5454ec0aab17bcb01965 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Wed, 18 Apr 2018 19:39:46 -0700 Subject: gpu: nvgpu: Remove gk20a_dbg* functions Switch all logging to nvgpu_log*(). gk20a_dbg* macros are intentionally left there because of use from other repositories. Because the new functions do not work without a pointer to struct gk20a, and piping it just for logging is excessive, some log messages are deleted. Change-Id: I00e22e75fe4596a330bb0282ab4774b3639ee31e Signed-off-by: Terje Bergstrom Reviewed-on: https://git-master.nvidia.com/r/1704148 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gp106/clk_gp106.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'drivers/gpu/nvgpu/gp106/clk_gp106.c') diff --git a/drivers/gpu/nvgpu/gp106/clk_gp106.c b/drivers/gpu/nvgpu/gp106/clk_gp106.c index 9a94a7b9..d19baac5 100644 --- a/drivers/gpu/nvgpu/gp106/clk_gp106.c +++ b/drivers/gpu/nvgpu/gp106/clk_gp106.c @@ -36,9 +36,6 @@ #include -#define gk20a_dbg_clk(fmt, arg...) \ - gk20a_dbg(gpu_dbg_clk, fmt, ##arg) - #ifdef CONFIG_DEBUG_FS static int clk_gp106_debugfs_init(struct gk20a *g); #endif @@ -82,7 +79,7 @@ int gp106_init_clk_support(struct gk20a *g) struct clk_gk20a *clk = &g->clk; u32 err = 0; - gk20a_dbg_fn(""); + nvgpu_log_fn(g, " "); err = nvgpu_mutex_init(&clk->clk_mutex); if (err) @@ -374,7 +371,7 @@ static int clk_gp106_debugfs_init(struct gk20a *g) d = debugfs_create_file("gpc", S_IRUGO | S_IWUSR, clk_freq_ctlr_root, g, &gpc_cfc_fops); - gk20a_dbg(gpu_dbg_info, "g=%p", g); + nvgpu_log(g, gpu_dbg_info, "g=%p", g); for (i = 0; i < g->clk.namemap_num; i++) { if (g->clk.clk_namemap[i].is_enable) { -- cgit v1.2.2