]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Skip modifying PCH DREF if not changing clock sources
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 26 Mar 2013 23:33:04 +0000 (16:33 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 2 Apr 2013 18:25:34 +0000 (20:25 +0200)
commit1f986b6162b3688eb62964dae351b225e9e89d3b
treeae085468d69dce81d81a5eebe801b8e01f347001
parentc719adc3d2f8fafceb81a53c6f0ce74adfa7058d
drm/i915: Skip modifying PCH DREF if not changing clock sources

Modifying the clock sources (via the DREF control on the PCH) is a slow
multi-stage process as we need to let the clocks stabilise between each
stage. If we are not actually changing the clock sources, then we can
return early.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
[danvet: Appease checkpatch by deleting a space after a ~]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c