drm/vmwgfx: Don't flush fb if we're in the suspended state.
authorThomas Hellstrom <thellstrom@vmware.com>
Tue, 5 Oct 2010 10:43:05 +0000 (12:43 +0200)
committerDave Airlie <airlied@redhat.com>
Wed, 6 Oct 2010 01:29:54 +0000 (11:29 +1000)
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/vmwgfx/vmwgfx_fb.c

index 086ef04902632f7d3a7d653c2c984add5ca9c9d6..b27a9f2887d21f51480b7a3b8530e3436f78deb5 100644 (file)
@@ -212,6 +212,9 @@ static void vmw_fb_dirty_flush(struct vmw_fb_par *par)
                SVGAFifoCmdUpdate body;
        } *cmd;
 
+       if (vmw_priv->suspended)
+               return;
+
        spin_lock_irqsave(&par->dirty.lock, flags);
        if (!par->dirty.active) {
                spin_unlock_irqrestore(&par->dirty.lock, flags);