diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2010-10-05 10:43:05 (GMT) |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-10-06 01:29:54 (GMT) |
commit | 09e2601b5a7bb817fb07df6f430289484a9a2cad (patch) | |
tree | 386cc6d5e874594d180406f3919dda6454e66c9e /drivers/gpu/drm/vmwgfx | |
parent | e133e7371231e49c3e7d626e2251cb6f7c3ca1ad (diff) | |
download | linux-fsl-qoriq-09e2601b5a7bb817fb07df6f430289484a9a2cad.tar.xz |
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/drm/vmwgfx')
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_fb.c | 3 |
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 086ef04..b27a9f2 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); |