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/common/linux/vgpu/clk_vgpu.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'drivers/gpu/nvgpu/common/linux/vgpu/clk_vgpu.c') diff --git a/drivers/gpu/nvgpu/common/linux/vgpu/clk_vgpu.c b/drivers/gpu/nvgpu/common/linux/vgpu/clk_vgpu.c index 0bd8e2bc..0858e6b1 100644 --- a/drivers/gpu/nvgpu/common/linux/vgpu/clk_vgpu.c +++ b/drivers/gpu/nvgpu/common/linux/vgpu/clk_vgpu.c @@ -33,7 +33,7 @@ static unsigned long vgpu_clk_get_rate(struct gk20a *g, u32 api_domain) int err; unsigned long ret = 0; - gk20a_dbg_fn(""); + nvgpu_log_fn(g, " "); switch (api_domain) { case CTRL_CLK_DOMAIN_GPCCLK: @@ -65,7 +65,7 @@ static int vgpu_clk_set_rate(struct gk20a *g, struct tegra_vgpu_gpu_clk_rate_params *p = &msg.params.gpu_clk_rate; int err = -EINVAL; - gk20a_dbg_fn(""); + nvgpu_log_fn(g, " "); switch (api_domain) { case CTRL_CLK_DOMAIN_GPCCLK: @@ -121,7 +121,7 @@ int vgpu_clk_get_freqs(struct device *dev, unsigned int i; int err; - gk20a_dbg_fn(""); + nvgpu_log_fn(g, " "); msg.cmd = TEGRA_VGPU_CMD_GET_GPU_FREQ_TABLE; msg.handle = vgpu_get_handle(g); @@ -152,7 +152,7 @@ int vgpu_clk_cap_rate(struct device *dev, unsigned long rate) struct tegra_vgpu_gpu_clk_rate_params *p = &msg.params.gpu_clk_rate; int err = 0; - gk20a_dbg_fn(""); + nvgpu_log_fn(g, " "); msg.cmd = TEGRA_VGPU_CMD_CAP_GPU_CLK_RATE; msg.handle = vgpu_get_handle(g); -- cgit v1.2.2