diff options
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/clk_gm20b.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/clk_gm20b.c b/drivers/gpu/nvgpu/gm20b/clk_gm20b.c index b1ea7331..906e805a 100644 --- a/drivers/gpu/nvgpu/gm20b/clk_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/clk_gm20b.c | |||
@@ -1858,8 +1858,8 @@ static int voltage_get(void *data, u64 *val) | |||
1858 | 1858 | ||
1859 | det_out = gk20a_readl(g, trim_sys_gpcpll_cfg3_r()); | 1859 | det_out = gk20a_readl(g, trim_sys_gpcpll_cfg3_r()); |
1860 | det_out = trim_sys_gpcpll_cfg3_dfs_testout_v(det_out); | 1860 | det_out = trim_sys_gpcpll_cfg3_dfs_testout_v(det_out); |
1861 | *val = (det_out * gpc_pll_params.uvdet_slope + | 1861 | *val = div64_u64((u64)det_out * gpc_pll_params.uvdet_slope + |
1862 | gpc_pll_params.uvdet_offs) / 1000; | 1862 | gpc_pll_params.uvdet_offs, 1000ULL); |
1863 | 1863 | ||
1864 | mutex_unlock(&g->clk.clk_mutex); | 1864 | mutex_unlock(&g->clk.clk_mutex); |
1865 | 1865 | ||