drm/i915: Use the ilk_disable_lp_wm() return value
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 28 Nov 2016 17:37:04 +0000 (19:37 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 5 Dec 2016 14:23:24 +0000 (16:23 +0200)
commitddd2b792cc942adfc31288dabf5d22886c31193f
tree1954e3c9d3c43d59813e3ed1fbdacd4265b26263
parent3125d39fe62eff2895f75671b07ae972bb2d8124
drm/i915: Use the ilk_disable_lp_wm() return value

ilk_disable_lp_wm() will tell us whether the LP1+ watermarks were
disabled or not, and hence whether we need to for the vblank wait or
not. Let's use that information to eliminate some useless vblank
waits.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1480354637-14209-3-git-send-email-ville.syrjala@linux.intel.com
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
drivers/gpu/drm/i915/intel_display.c