drm/atomic-helper: Implement drm_atomic_helper_duplicate_state()
authorThierry Reding <treding@nvidia.com>
Tue, 8 Sep 2015 13:00:45 +0000 (15:00 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 8 Sep 2015 13:39:18 +0000 (15:39 +0200)
commit397fd77c0491ceb0ed4783eb88fc05d0222e2030
tree9bbbed193c7edd8b304eec113e2d5c2f2891f8a9
parent6e48ae3269e3b89d8014d0eb2e35678b0d242b3d
drm/atomic-helper: Implement drm_atomic_helper_duplicate_state()

This function can be used to duplicate an atomic state object. This is
useful for example to implement suspend/resume, where the state before
suspend can be saved and restored upon resume.

v2: move locking to caller, be more explicit about prerequisites
v3: explicitly pass lock acquisition context, improve kerneldoc

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_atomic_helper.c
include/drm/drm_atomic_helper.h