]> git.karo-electronics.de Git - karo-tx-linux.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>
Tue, 19 Feb 2013 10:28:00 +0000 (11:28 +0100)
commit79712f1eecaa5ca9d7a3966f03611afd7ee3b071
tree8f0349a53785cc7219f1211d15f190ad7f96b5b8
parent9a3fd80b82ccff4817f4719b7eada8887ce5eb61
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