]> git.hungrycats.org Git - linux/commitdiff
drm/i915: Fix up mismerge of 3490ea5d in 3.7.y
authorAdam Jackson <ajax@redhat.com>
Wed, 20 Feb 2013 16:54:17 +0000 (11:54 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Feb 2013 17:21:19 +0000 (09:21 -0800)
The 3.7.y version of this seems to have missed a hunk in i9xx_update_wm.

Tested-by: Glen Gray <slaine@slaine.org>
Signed-off-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/i915/intel_pm.c

index 4e6a2b226278f392733df2e4d019603b8b551680..313088ff3318b3456dbeda4f61bfe26be8c4fa10 100644 (file)
@@ -1474,7 +1474,7 @@ static void i9xx_update_wm(struct drm_device *dev)
 
        fifo_size = dev_priv->display.get_fifo_size(dev, 0);
        crtc = intel_get_crtc_for_plane(dev, 0);
-       if (crtc->enabled && crtc->fb) {
+       if (intel_crtc_active(crtc)) {
                planea_wm = intel_calculate_wm(crtc->mode.clock,
                                               wm_info, fifo_size,
                                               crtc->fb->bits_per_pixel / 8,