]> git.baikalelectronics.ru Git - kernel.git/commit
PM: make VT switching to the suspend console optional v3
authorJesse Barnes <jbarnes@virtuousgeek.org>
Mon, 4 Feb 2013 13:37:20 +0000 (13:37 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 20 Feb 2013 00:33:41 +0000 (01:33 +0100)
commitd3d1b3c2f3c0e327f7a4cda72bd8fb853a17c1d1
tree6422cc20ed378f976a7ef4408921c712e5299dc8
parent8f0764632e46bffa9f55d7070af19de7b3e90a6a
PM: make VT switching to the suspend console optional v3

KMS drivers can potentially restore the display configuration without
userspace help.  Such drivers can can call a new funciton,
pm_vt_switch_required(false) if they support this feature.  In that
case, the PM layer won't VT switch to the suspend console at suspend
time and then back to the original VT on resume, but rather leave things
alone for a nicer looking suspend and resume sequence.

v2: make a function so we can handle multiple drivers (Alan)
v3: use a list to track device requests (Rafael)
v4: Squash in build fix from Jesse for CONFIG_VT_CONSOLE_SLEEP=n
v5: Squash in patch from Wu Fengguang to add a few missing static
qualifiers.
v6: Add missing EXPORT_SYMBOL.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> (v3)
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
include/linux/pm.h
kernel/power/console.c