OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e4b795
)
[PATCH] fbmon: horizontal frequency rounding fix
author
Jon Smirl
<jonsmirl@gmail.com>
Wed, 27 Jul 2005 18:46:03 +0000
(11:46 -0700)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Wed, 27 Jul 2005 23:26:18 +0000
(16:26 -0700)
Fix rounding error when mode frequency is very close to monitor limit
Signed-off-by: Jon Smirl <jonsmirl@gmail.com>
Acked-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/video/fbmon.c
patch
|
blob
|
history
diff --git
a/drivers/video/fbmon.c
b/drivers/video/fbmon.c
index
6cd1976
..
c2718bb
100644
(file)
--- a/
drivers/video/fbmon.c
+++ b/
drivers/video/fbmon.c
@@
-1241,6
+1241,8
@@
int fb_validate_mode(const struct fb_var_screeninfo *var, struct fb_info *info)
vtotal *= 2;
hfreq = pixclock/htotal;
+ hfreq = (hfreq + 500) / 1000 * 1000;
+
vfreq = hfreq/vtotal;
return (vfreq < vfmin || vfreq > vfmax ||