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/common/linux/vgpu/clk_vgpu.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/common/linux/vgpu/clk_vgpu.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/vgpu/clk_vgpu.c | 8 |
1 files changed, 4 insertions, 4 deletions
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) | |||
33 | int err; | 33 | int err; |
34 | unsigned long ret = 0; | 34 | unsigned long ret = 0; |
35 | 35 | ||
36 | gk20a_dbg_fn(""); | 36 | nvgpu_log_fn(g, " "); |
37 | 37 | ||
38 | switch (api_domain) { | 38 | switch (api_domain) { |
39 | case CTRL_CLK_DOMAIN_GPCCLK: | 39 | case CTRL_CLK_DOMAIN_GPCCLK: |
@@ -65,7 +65,7 @@ static int vgpu_clk_set_rate(struct gk20a *g, | |||
65 | struct tegra_vgpu_gpu_clk_rate_params *p = &msg.params.gpu_clk_rate; | 65 | struct tegra_vgpu_gpu_clk_rate_params *p = &msg.params.gpu_clk_rate; |
66 | int err = -EINVAL; | 66 | int err = -EINVAL; |
67 | 67 | ||
68 | gk20a_dbg_fn(""); | 68 | nvgpu_log_fn(g, " "); |
69 | 69 | ||
70 | switch (api_domain) { | 70 | switch (api_domain) { |
71 | case CTRL_CLK_DOMAIN_GPCCLK: | 71 | case CTRL_CLK_DOMAIN_GPCCLK: |
@@ -121,7 +121,7 @@ int vgpu_clk_get_freqs(struct device *dev, | |||
121 | unsigned int i; | 121 | unsigned int i; |
122 | int err; | 122 | int err; |
123 | 123 | ||
124 | gk20a_dbg_fn(""); | 124 | nvgpu_log_fn(g, " "); |
125 | 125 | ||
126 | msg.cmd = TEGRA_VGPU_CMD_GET_GPU_FREQ_TABLE; | 126 | msg.cmd = TEGRA_VGPU_CMD_GET_GPU_FREQ_TABLE; |
127 | msg.handle = vgpu_get_handle(g); | 127 | msg.handle = vgpu_get_handle(g); |
@@ -152,7 +152,7 @@ int vgpu_clk_cap_rate(struct device *dev, unsigned long rate) | |||
152 | struct tegra_vgpu_gpu_clk_rate_params *p = &msg.params.gpu_clk_rate; | 152 | struct tegra_vgpu_gpu_clk_rate_params *p = &msg.params.gpu_clk_rate; |
153 | int err = 0; | 153 | int err = 0; |
154 | 154 | ||
155 | gk20a_dbg_fn(""); | 155 | nvgpu_log_fn(g, " "); |
156 | 156 | ||
157 | msg.cmd = TEGRA_VGPU_CMD_CAP_GPU_CLK_RATE; | 157 | msg.cmd = TEGRA_VGPU_CMD_CAP_GPU_CLK_RATE; |
158 | msg.handle = vgpu_get_handle(g); | 158 | msg.handle = vgpu_get_handle(g); |