summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp106/clk_gp106.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gp106/clk_gp106.c')
-rw-r--r--drivers/gpu/nvgpu/gp106/clk_gp106.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gp106/clk_gp106.c b/drivers/gpu/nvgpu/gp106/clk_gp106.c
index 0e9f8d3a..4c9bc782 100644
--- a/drivers/gpu/nvgpu/gp106/clk_gp106.c
+++ b/drivers/gpu/nvgpu/gp106/clk_gp106.c
@@ -67,7 +67,8 @@ static u16 gp106_clk_get_rate(struct gk20a *g, u32 api_domain)
67 freq_khz = c->is_counter ? c->scale * gp106_get_rate_cntr(g, c) : 67 freq_khz = c->is_counter ? c->scale * gp106_get_rate_cntr(g, c) :
68 0; /* TODO: PLL read */ 68 0; /* TODO: PLL read */
69 69
70 return (u16) freq_khz/1000; 70 /* Convert to MHZ */
71 return (u16) (freq_khz/1000);
71} 72}
72 73
73static int gp106_init_clk_support(struct gk20a *g) { 74static int gp106_init_clk_support(struct gk20a *g) {