aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2013-08-01 09:03:29 -0400
committerDave Airlie <airlied@gmail.com>2013-08-03 21:03:14 -0400
commitadfb8e51332153016857194b85309150ac560286 (patch)
tree1b03487c9673f4f9733796eacce7236244925a16
parent72a67a94bcba71a5fddd6b3596a20604d2b5dcd6 (diff)
drm/radeon: fix 64 bit divide in SI spm code
Forgot to use the appropriate math64 function. Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Dave Airlie <airlied@gmail.com>
-rw-r--r--drivers/gpu/drm/radeon/si_dpm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/si_dpm.c b/drivers/gpu/drm/radeon/si_dpm.c
index 7ad22e87cd62..41825575b403 100644
--- a/drivers/gpu/drm/radeon/si_dpm.c
+++ b/drivers/gpu/drm/radeon/si_dpm.c
@@ -1767,7 +1767,7 @@ static void si_calculate_leakage_for_v_and_t_formula(const struct ni_leakage_coe
1767 s64 temperature, t_slope, t_intercept, av, bv, t_ref; 1767 s64 temperature, t_slope, t_intercept, av, bv, t_ref;
1768 s64 tmp; 1768 s64 tmp;
1769 1769
1770 i_leakage = drm_int2fixp(ileakage) / 100; 1770 i_leakage = div64_s64(drm_int2fixp(ileakage), 100);
1771 vddc = div64_s64(drm_int2fixp(v), 1000); 1771 vddc = div64_s64(drm_int2fixp(v), 1000);
1772 temperature = div64_s64(drm_int2fixp(t), 1000); 1772 temperature = div64_s64(drm_int2fixp(t), 1000);
1773 1773