drm/i915/skl: Skip remaining dividers when deviation is 0
authorDamien Lespiau <damien.lespiau@intel.com>
Fri, 26 Jun 2015 17:34:29 +0000 (18:34 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 26 Jun 2015 17:41:59 +0000 (19:41 +0200)
commite7ad987832637701fc723ac2c1580c30c191bca6
tree194e9f9c06be41b63e1db9963b22076239ec15a0
parent350405623ff3f447813eaef2035272bf05281671
drm/i915/skl: Skip remaining dividers when deviation is 0

We can't improve a 0 deviation, so when we find such a divider, skip the
remaining ones they won't be better.

This short-circuit the search for 34 of the 373 test frequencies in the
corresponding i-g-t test (tools/skl_compute_wrpll)

v2: Place the short-circuiting code in skl_compute_wrpll() (Paulo)

(I'm sure nobody will notice the spurious removal of a blank line)

Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Suggested-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_ddi.c