]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd37c93b0f16eab713395a054b8a27ce683b3cfa3
tree194e9f9c06be41b63e1db9963b22076239ec15a0
parent28ebc2a2669e2ab7021754a07e317e28dc378e20
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