Commit 98706ea9 authored by Dave Airlie's avatar Dave Airlie

drm/nouveau: fix 32-bit build

This uses the proper div macro.
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 91915260
...@@ -197,7 +197,7 @@ nv50_clock_read(struct nouveau_clock *clk, enum nv_clk_src src) ...@@ -197,7 +197,7 @@ nv50_clock_read(struct nouveau_clock *clk, enum nv_clk_src src)
case nv_clk_src_href: case nv_clk_src_href:
return 100000; /* PCIE reference clock */ return 100000; /* PCIE reference clock */
case nv_clk_src_hclk: case nv_clk_src_hclk:
return (u64)clk->read(clk, nv_clk_src_href) * 27778 / 10000; return div_u64((u64)clk->read(clk, nv_clk_src_href) * 27778, 10000);
case nv_clk_src_hclkm3: case nv_clk_src_hclkm3:
return clk->read(clk, nv_clk_src_hclk) * 3; return clk->read(clk, nv_clk_src_hclk) * 3;
case nv_clk_src_hclkm3d2: case nv_clk_src_hclkm3d2:
......
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