Commit c354080d authored by Ben Skeggs's avatar Ben Skeggs

drm/nv50/disp: shhh compiler

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent d6bd3803
...@@ -1574,7 +1574,7 @@ nv50_disp_intr_unk20_2_dp(struct nv50_disp_priv *priv, ...@@ -1574,7 +1574,7 @@ nv50_disp_intr_unk20_2_dp(struct nv50_disp_priv *priv,
int TU, VTUi, VTUf, VTUa; int TU, VTUi, VTUf, VTUa;
u64 link_data_rate, link_ratio, unk; u64 link_data_rate, link_ratio, unk;
u32 best_diff = 64 * symbol; u32 best_diff = 64 * symbol;
u32 link_nr, link_bw, bits, r; u32 link_nr, link_bw, bits;
/* calculate packed data rate for each lane */ /* calculate packed data rate for each lane */
if (dpctrl > 0x00030000) link_nr = 4; if (dpctrl > 0x00030000) link_nr = 4;
...@@ -1594,7 +1594,7 @@ nv50_disp_intr_unk20_2_dp(struct nv50_disp_priv *priv, ...@@ -1594,7 +1594,7 @@ nv50_disp_intr_unk20_2_dp(struct nv50_disp_priv *priv,
/* calculate ratio of packed data rate to link symbol rate */ /* calculate ratio of packed data rate to link symbol rate */
link_ratio = link_data_rate * symbol; link_ratio = link_data_rate * symbol;
r = do_div(link_ratio, link_bw); do_div(link_ratio, link_bw);
for (TU = 64; TU >= 32; TU--) { for (TU = 64; TU >= 32; TU--) {
/* calculate average number of valid symbols in each TU */ /* calculate average number of valid symbols in each TU */
...@@ -1655,8 +1655,8 @@ nv50_disp_intr_unk20_2_dp(struct nv50_disp_priv *priv, ...@@ -1655,8 +1655,8 @@ nv50_disp_intr_unk20_2_dp(struct nv50_disp_priv *priv,
/* XXX close to vbios numbers, but not right */ /* XXX close to vbios numbers, but not right */
unk = (symbol - link_ratio) * bestTU; unk = (symbol - link_ratio) * bestTU;
unk *= link_ratio; unk *= link_ratio;
r = do_div(unk, symbol); do_div(unk, symbol);
r = do_div(unk, symbol); do_div(unk, symbol);
unk += 6; unk += 6;
nv_mask(priv, 0x61c10c + loff, 0x000001fc, bestTU << 2); nv_mask(priv, 0x61c10c + loff, 0x000001fc, bestTU << 2);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment