Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 345122
b: refs/heads/master
c: c630119
h: refs/heads/master
v: v3
  • Loading branch information
Daniel Vetter committed Oct 17, 2012
1 parent dd0fa2f commit 24c6b11
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 905c27bb0de30dab178a54c06dc284177e24088a
refs/heads/master: c630119f43471a8ece356b01dabf07f944f453b3
6 changes: 4 additions & 2 deletions trunk/drivers/gpu/drm/i915/i915_suspend.c
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,8 @@ int i915_save_state(struct drm_device *dev)
mutex_lock(&dev->struct_mutex);

/* Hardware status page */
dev_priv->saveHWS = I915_READ(HWS_PGA);
if (!drm_core_check_feature(dev, DRIVER_MODESET))
dev_priv->saveHWS = I915_READ(HWS_PGA);

i915_save_display(dev);

Expand Down Expand Up @@ -867,7 +868,8 @@ int i915_restore_state(struct drm_device *dev)
mutex_lock(&dev->struct_mutex);

/* Hardware status page */
I915_WRITE(HWS_PGA, dev_priv->saveHWS);
if (!drm_core_check_feature(dev, DRIVER_MODESET))
I915_WRITE(HWS_PGA, dev_priv->saveHWS);

i915_restore_display(dev);

Expand Down

0 comments on commit 24c6b11

Please sign in to comment.