aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom@vmware.com>2010-10-05 06:43:05 -0400
committerDave Airlie <airlied@redhat.com>2010-10-05 21:29:54 -0400
commit09e2601b5a7bb817fb07df6f430289484a9a2cad (patch)
tree386cc6d5e874594d180406f3919dda6454e66c9e /drivers/gpu
parente133e7371231e49c3e7d626e2251cb6f7c3ca1ad (diff)
drm/vmwgfx: Don't flush fb if we're in the suspended state.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_fb.c3
1 files changed, 3 insertions, 0 deletions
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)
212 SVGAFifoCmdUpdate body; 212 SVGAFifoCmdUpdate body;
213 } *cmd; 213 } *cmd;
214 214
215 if (vmw_priv->suspended)
216 return;
217
215 spin_lock_irqsave(&par->dirty.lock, flags); 218 spin_lock_irqsave(&par->dirty.lock, flags);
216 if (!par->dirty.active) { 219 if (!par->dirty.active) {
217 spin_unlock_irqrestore(&par->dirty.lock, flags); 220 spin_unlock_irqrestore(&par->dirty.lock, flags);