drm/fb-helper: Add drm_fb_helper_set_suspend_unlocked()
authorNoralf Trønnes <noralf@tronnes.org>
Tue, 23 Aug 2016 11:54:06 +0000 (13:54 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 23 Aug 2016 12:08:35 +0000 (14:08 +0200)
commitcfe63423d9be3e7020296c3dfb512768a83cd099
tree93294e2ec00b3b1fb3b33285e44e72670aaaade3
parent0a3bfe29f81622f50fbd9a64ec7c705845516681
drm/fb-helper: Add drm_fb_helper_set_suspend_unlocked()

This adds a function that also takes the console lock before calling
fb_set_suspend() in contrast to drm_fb_helper_set_suspend() which is
a plain wrapper around fb_set_suspend().
Resume is run asynchronously using a worker if the console lock is
already taken. This is modelled after the i915 driver.

Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1471953246-29602-1-git-send-email-noralf@tronnes.org
drivers/gpu/drm/drm_fb_helper.c
include/drm/drm_fb_helper.h