projects
/
platform
/
upstream
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07a5fba
)
bring in change from drm_fb.c
author
Alan Hourihane
<alanh@fairlite.demon.co.uk>
Thu, 17 May 2007 18:32:46 +0000
(19:32 +0100)
committer
Alan Hourihane
<alanh@fairlite.demon.co.uk>
Thu, 17 May 2007 18:32:46 +0000
(19:32 +0100)
linux-core/intel_fb.c
patch
|
blob
|
history
diff --git
a/linux-core/intel_fb.c
b/linux-core/intel_fb.c
index
7126c16
..
9d7b732
100644
(file)
--- a/
linux-core/intel_fb.c
+++ b/
linux-core/intel_fb.c
@@
-504,7
+504,9
@@
int intelfb_probe(struct drm_device *dev, struct drm_crtc *crtc)
info->var.vsync_len = mode->vsync_end - mode->vsync_start;
info->var.upper_margin = mode->vtotal - mode->vsync_end;
info->var.pixclock = 10000000 / mode->htotal * 1000 /
- mode->vtotal * 100000 / mode->vrefresh;
+ mode->vtotal * 100;
+ /* avoid overflow */
+ info->var.pixclock = info->var.pixclock * 1000 / mode->vrefresh;
info->pixmap.size = 64*1024;
info->pixmap.buf_align = 8;