From: Zhao Yakui Date: Mon, 22 Jun 2009 05:17:09 +0000 (+0800) Subject: drm/mode: add the GTF algorithm in kernel space X-Git-Tag: v2.6.32-rc1~52^2~126 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26bbdadad356ec02d33657858d91675f3e9aca94;p=pandora-kernel.git drm/mode: add the GTF algorithm in kernel space Add the GTF algorithm in kernel space. And this function can be called to generate the required modeline. I copied it from the file of xserver/hw/xfree86/modes/xf86gtf.c. What I have done is to translate it by using integer calculation. This is to avoid the float-point calculation in kernel space. At the same tie I also refer to the function of fb_get_mode in drivers/video/fbmon.c Signed-off-by: Zhao Yakui Signed-off-by: Dave Airlie --- Reading git-diff-tree failed