From: Thomas Hellstrom Date: Tue, 5 Oct 2010 10:43:05 +0000 (+0200) Subject: drm/vmwgfx: Don't flush fb if we're in the suspended state. X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=09e2601b5a7bb817fb07df6f430289484a9a2cad;p=deliverable%2Flinux.git drm/vmwgfx: Don't flush fb if we're in the suspended state. Signed-off-by: Thomas Hellstrom Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c b/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c index 086ef0490263..b27a9f2887d2 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c @@ -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);