diff options
author | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2016-02-16 10:06:14 +0100 |
---|---|---|
committer | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2016-02-16 11:23:46 +0100 |
commit | e2c8b8701e2d0cb5b89fa3b5c8acae9dc4f76259 (patch) | |
tree | 368a359299ba0676ecdb5a01b0351fd4a8e24353 /drivers/gpu/drm/i915/i915_drv.h | |
parent | 1db6e2e7dc2739181bd55c3c41263634803b3cc9 (diff) | |
download | op-kernel-dev-e2c8b8701e2d0cb5b89fa3b5c8acae9dc4f76259.zip op-kernel-dev-e2c8b8701e2d0cb5b89fa3b5c8acae9dc4f76259.tar.gz |
drm/i915: Use atomic helpers for suspend, v2.
Instead of duplicating the functionality now that we no longer need
to preserve dpll state we can move to using the upstream suspend helper.
Changes since v1:
- Call hw readout with all mutexes held.
- Rework intel_display_suspend to only assign modeset_restore_state
on success.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/56C2E686.5060803@linux.intel.com
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index 20d9dbd..6644c2e 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h @@ -1848,6 +1848,7 @@ struct drm_i915_private { enum modeset_restore modeset_restore; struct mutex modeset_restore_lock; + struct drm_atomic_state *modeset_restore_state; struct list_head vm_list; /* Global list of all address spaces */ struct i915_gtt gtt; /* VM representing the global address space */ |