diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2018-04-18 22:39:46 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-05-09 21:26:04 -0400 |
commit | dd739fcb039d51606e9a5454ec0aab17bcb01965 (patch) | |
tree | 806ba8575d146367ad1be00086ca0cdae35a6b28 /drivers/gpu/nvgpu/gp106/clk_gp106.c | |
parent | 7e66f2a63d4855e763fa768047dfc32f6f96b771 (diff) |
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 <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1704148
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp106/clk_gp106.c')
-rw-r--r-- | drivers/gpu/nvgpu/gp106/clk_gp106.c | 7 |
1 files changed, 2 insertions, 5 deletions
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 @@ | |||
36 | 36 | ||
37 | #include <nvgpu/hw/gp106/hw_trim_gp106.h> | 37 | #include <nvgpu/hw/gp106/hw_trim_gp106.h> |
38 | 38 | ||
39 | #define gk20a_dbg_clk(fmt, arg...) \ | ||
40 | gk20a_dbg(gpu_dbg_clk, fmt, ##arg) | ||
41 | |||
42 | #ifdef CONFIG_DEBUG_FS | 39 | #ifdef CONFIG_DEBUG_FS |
43 | static int clk_gp106_debugfs_init(struct gk20a *g); | 40 | static int clk_gp106_debugfs_init(struct gk20a *g); |
44 | #endif | 41 | #endif |
@@ -82,7 +79,7 @@ int gp106_init_clk_support(struct gk20a *g) | |||
82 | struct clk_gk20a *clk = &g->clk; | 79 | struct clk_gk20a *clk = &g->clk; |
83 | u32 err = 0; | 80 | u32 err = 0; |
84 | 81 | ||
85 | gk20a_dbg_fn(""); | 82 | nvgpu_log_fn(g, " "); |
86 | 83 | ||
87 | err = nvgpu_mutex_init(&clk->clk_mutex); | 84 | err = nvgpu_mutex_init(&clk->clk_mutex); |
88 | if (err) | 85 | if (err) |
@@ -374,7 +371,7 @@ static int clk_gp106_debugfs_init(struct gk20a *g) | |||
374 | d = debugfs_create_file("gpc", S_IRUGO | S_IWUSR, clk_freq_ctlr_root, | 371 | d = debugfs_create_file("gpc", S_IRUGO | S_IWUSR, clk_freq_ctlr_root, |
375 | g, &gpc_cfc_fops); | 372 | g, &gpc_cfc_fops); |
376 | 373 | ||
377 | gk20a_dbg(gpu_dbg_info, "g=%p", g); | 374 | nvgpu_log(g, gpu_dbg_info, "g=%p", g); |
378 | 375 | ||
379 | for (i = 0; i < g->clk.namemap_num; i++) { | 376 | for (i = 0; i < g->clk.namemap_num; i++) { |
380 | if (g->clk.clk_namemap[i].is_enable) { | 377 | if (g->clk.clk_namemap[i].is_enable) { |