[Intel-gfx] [PATCH]delete redundant check in find best pll function

Ma Ling ling.ma at intel.com
Fri Mar 13 08:53:10 CET 2009


m1 on i8xx and i9xx platform is always above m2, so it doesn't need to append check rule in loop function.

Thanks
Ma Ling

Signed-off-by: Ma Ling <ling.ma at intel.com>
---
 src/i830_display.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/src/i830_display.c b/src/i830_display.c
index b59e594..50a3d69 100644
--- a/src/i830_display.c
+++ b/src/i830_display.c
@@ -818,9 +818,6 @@ intel_find_pll_i8xx_and_i9xx(intel_limit_t * limit, xf86CrtcPtr crtc,
 	for (clock.m2 = limit->m2.min;
 		clock.m2 <= limit->m2.max; clock.m2++)
 	{
-            /* m1 is always 0 in IGD */
-            if (clock.m2 >= clock.m1 && !IS_IGD(pI830))
-                break;
 	    for (clock.n = limit->n.min; clock.n <= limit->n.max; clock.n++)
 	    {
 		for (clock.p1 = limit->p1.min;
-- 
1.5.4.4






More information about the Intel-gfx mailing list