Skip to content

Commit

Permalink
drm/radeon: fix 64 bit divide in SI spm code
Browse files Browse the repository at this point in the history
Forgot to use the appropriate math64 function.

Signed-off-by: Alex Deucher <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
  • Loading branch information
alexdeucher authored and airlied committed Aug 4, 2013
1 parent 72a67a9 commit adfb8e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/radeon/si_dpm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1767,7 +1767,7 @@ static void si_calculate_leakage_for_v_and_t_formula(const struct ni_leakage_coe
s64 temperature, t_slope, t_intercept, av, bv, t_ref;
s64 tmp;

i_leakage = drm_int2fixp(ileakage) / 100;
i_leakage = div64_s64(drm_int2fixp(ileakage), 100);
vddc = div64_s64(drm_int2fixp(v), 1000);
temperature = div64_s64(drm_int2fixp(t), 1000);

Expand Down

0 comments on commit adfb8e5

Please sign in to comment.