drm/i915: Avoid reading fbc registers in vain when fbc was never enabled.
authorRodrigo Vivi <rodrigo.vivi@intel.com>
Wed, 17 Sep 2014 20:59:20 +0000 (16:59 -0400)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 19 Sep 2014 12:43:24 +0000 (14:43 +0200)
commit342e36c6b0cab1d7461287d553154ff35fee989d
treebf0f9264b4dea4c5ec710285c133b23bb7f10ff8
parent01d06e9f963ba6a83154ab81929b7f5e04bbe5dd
drm/i915: Avoid reading fbc registers in vain when fbc was never enabled.

If it wasn't never enabled by kernel parameter or platform default
we can avoid reading registers so many times in vain

Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_pm.c