projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9191526
)
drm/nouveau: fix 32-bit build
author
Dave Airlie
<airlied@redhat.com>
Sat, 9 Nov 2013 23:24:24 +0000
(09:24 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Sat, 9 Nov 2013 23:24:24 +0000
(09:24 +1000)
This uses the proper div macro.
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/nouveau/core/subdev/clock/nv50.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/nouveau/core/subdev/clock/nv50.c
b/drivers/gpu/drm/nouveau/core/subdev/clock/nv50.c
index 1a016df4e0e800fefac9879b98bfc546f31fb51c..250a6d96016bff563946563e93d2aec4a3eeba13 100644
(file)
--- a/
drivers/gpu/drm/nouveau/core/subdev/clock/nv50.c
+++ b/
drivers/gpu/drm/nouveau/core/subdev/clock/nv50.c
@@
-197,7
+197,7
@@
nv50_clock_read(struct nouveau_clock *clk, enum nv_clk_src src)
case nv_clk_src_href:
return 100000; /* PCIE reference clock */
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:
return clk->read(clk, nv_clk_src_hclk) * 3;
case nv_clk_src_hclkm3d2: