diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/platform_gp10b_tegra.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/platform_gp10b_tegra.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/platform_gp10b_tegra.c b/drivers/gpu/nvgpu/common/linux/platform_gp10b_tegra.c index 6e54d00b..08c5df0f 100644 --- a/drivers/gpu/nvgpu/common/linux/platform_gp10b_tegra.c +++ b/drivers/gpu/nvgpu/common/linux/platform_gp10b_tegra.c | |||
@@ -273,11 +273,11 @@ void gp10b_tegra_prescale(struct device *dev) | |||
273 | struct gk20a *g = get_gk20a(dev); | 273 | struct gk20a *g = get_gk20a(dev); |
274 | u32 avg = 0; | 274 | u32 avg = 0; |
275 | 275 | ||
276 | gk20a_dbg_fn(""); | 276 | nvgpu_log_fn(g, " "); |
277 | 277 | ||
278 | nvgpu_pmu_load_norm(g, &avg); | 278 | nvgpu_pmu_load_norm(g, &avg); |
279 | 279 | ||
280 | gk20a_dbg_fn("done"); | 280 | nvgpu_log_fn(g, "done"); |
281 | } | 281 | } |
282 | 282 | ||
283 | void gp10b_tegra_postscale(struct device *pdev, | 283 | void gp10b_tegra_postscale(struct device *pdev, |
@@ -288,7 +288,7 @@ void gp10b_tegra_postscale(struct device *pdev, | |||
288 | struct gk20a *g = get_gk20a(pdev); | 288 | struct gk20a *g = get_gk20a(pdev); |
289 | unsigned long emc_rate; | 289 | unsigned long emc_rate; |
290 | 290 | ||
291 | gk20a_dbg_fn(""); | 291 | nvgpu_log_fn(g, " "); |
292 | if (profile && !platform->is_railgated(pdev)) { | 292 | if (profile && !platform->is_railgated(pdev)) { |
293 | unsigned long emc_scale; | 293 | unsigned long emc_scale; |
294 | 294 | ||
@@ -306,7 +306,7 @@ void gp10b_tegra_postscale(struct device *pdev, | |||
306 | (struct tegra_bwmgr_client *)profile->private_data, | 306 | (struct tegra_bwmgr_client *)profile->private_data, |
307 | emc_rate, TEGRA_BWMGR_SET_EMC_FLOOR); | 307 | emc_rate, TEGRA_BWMGR_SET_EMC_FLOOR); |
308 | } | 308 | } |
309 | gk20a_dbg_fn("done"); | 309 | nvgpu_log_fn(g, "done"); |
310 | } | 310 | } |
311 | 311 | ||
312 | long gp10b_round_clk_rate(struct device *dev, unsigned long rate) | 312 | long gp10b_round_clk_rate(struct device *dev, unsigned long rate) |
@@ -328,6 +328,7 @@ int gp10b_clk_get_freqs(struct device *dev, | |||
328 | unsigned long **freqs, int *num_freqs) | 328 | unsigned long **freqs, int *num_freqs) |
329 | { | 329 | { |
330 | struct gk20a_platform *platform = gk20a_get_platform(dev); | 330 | struct gk20a_platform *platform = gk20a_get_platform(dev); |
331 | struct gk20a *g = platform->g; | ||
331 | unsigned long max_rate; | 332 | unsigned long max_rate; |
332 | unsigned long new_rate = 0, prev_rate = 0; | 333 | unsigned long new_rate = 0, prev_rate = 0; |
333 | int i = 0, freq_counter = 0; | 334 | int i = 0, freq_counter = 0; |
@@ -358,7 +359,7 @@ int gp10b_clk_get_freqs(struct device *dev, | |||
358 | *freqs = gp10b_freq_table; | 359 | *freqs = gp10b_freq_table; |
359 | *num_freqs = freq_counter; | 360 | *num_freqs = freq_counter; |
360 | 361 | ||
361 | gk20a_dbg_info("min rate: %ld max rate: %ld num_of_freq %d\n", | 362 | nvgpu_log_info(g, "min rate: %ld max rate: %ld num_of_freq %d\n", |
362 | gp10b_freq_table[0], max_rate, *num_freqs); | 363 | gp10b_freq_table[0], max_rate, *num_freqs); |
363 | 364 | ||
364 | return 0; | 365 | return 0; |