summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c
index e4bfce7f..a4afba63 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.c
@@ -390,7 +390,6 @@ int gk20a_wait_for_idle(struct gk20a *g)
390int gk20a_init_gpu_characteristics(struct gk20a *g) 390int gk20a_init_gpu_characteristics(struct gk20a *g)
391{ 391{
392 struct nvgpu_gpu_characteristics *gpu = &g->gpu_characteristics; 392 struct nvgpu_gpu_characteristics *gpu = &g->gpu_characteristics;
393 struct gk20a_platform *platform = dev_get_drvdata(dev_from_gk20a(g));
394 393
395 gpu->L2_cache_size = g->ops.ltc.determine_L2_size_bytes(g); 394 gpu->L2_cache_size = g->ops.ltc.determine_L2_size_bytes(g);
396 gpu->on_board_video_memory_size = 0; /* integrated GPU */ 395 gpu->on_board_video_memory_size = 0; /* integrated GPU */
@@ -485,9 +484,8 @@ int gk20a_init_gpu_characteristics(struct gk20a *g)
485 484
486 gpu->map_buffer_batch_limit = 256; 485 gpu->map_buffer_batch_limit = 256;
487 486
488 if (platform->clk_round_rate) 487 if (g->ops.clk.get_maxrate)
489 gpu->max_freq = platform->clk_round_rate(dev_from_gk20a(g), 488 gpu->max_freq = g->ops.clk.get_maxrate(&g->clk);
490 UINT_MAX);
491 489
492 g->ops.gr.get_preemption_mode_flags(g, &g->gr.preemption_mode_rec); 490 g->ops.gr.get_preemption_mode_flags(g, &g->gr.preemption_mode_rec);
493 gpu->graphics_preemption_mode_flags = 491 gpu->graphics_preemption_mode_flags =