drm/i915: split out PCH refclk update code
authorJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 3 Aug 2011 19:59:20 +0000 (12:59 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 9 Aug 2011 17:26:24 +0000 (10:26 -0700)
commit13d83a672e9bbd52ae82c2f611dfd845a957e8b4
treeba82ed032944fb58e3c721ac3a5d3031e5d4a8f5
parentda64c6fc4aba6f02aa800db72411f459a9f86809
drm/i915: split out PCH refclk update code

We ought to be calling this from our DPMS routines as well as global
state may change and we need to enable/disable clocks.  So split out the
code in preparation for further changes.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Keith Packard <keithp@keithp.com>
drivers/gpu/drm/i915/intel_display.c