freebsd-skq/sys/dev/syscons
Andriy Gapon 85f95fffd7 hook userland threads suspend + resume into acpi suspend code
Also, split power_suspend into power_suspend and power_suspend_early.

power_suspend_early is called before the userland is frozen.
power_suspend is called after the userland is frozen.

Currently only VT switching is hooked to power_suspend_early.
This is needed because switching away from X server requires its
cooperation, so obviously X server must not be frozen when that happens.

Freezing userland during ACPI suspend is useful because not all drivers
correctly handle suspension concurrent with other activity.  This is
especially applicable to drivers ported from other operating systems
that suspend all software activity between placing drivers and hardware
into suspended state.
In particular drm2/radeon (radeonkms) depends on the described
procedure.  The driver does not have any internal synchronization
between suspension activities and processing of userland requests.

Many thanks to kib for the code that allows to freeze and thaw all
userland threads.

Note that ideally we also need to park / inhibit (non-special) kernel
threads as well to ensure that they do not call into drivers.

MFC after:	17 days
2015-01-27 17:33:18 +00:00
..
apm
blank
daemon Fix sos@'s name. 2015-01-07 21:44:57 +00:00
dragon
fade
fire
green
logo
rain
snake
star
warp
scgfbrndr.c
schistory.c
scmouse.c
scterm-teken.c Extend libteken to support CJK fullwidth characters. 2013-12-20 21:31:50 +00:00
scterm.c
scvesactl.c
scvgarndr.c
scvidctl.c
scvtb.c
syscons.c hook userland threads suspend + resume into acpi suspend code 2015-01-27 17:33:18 +00:00
syscons.h Fix comment introduced in r262480: it's 1920x1200, not 1980x1200. 2014-02-25 23:04:39 +00:00
sysmouse.c Use a common tunable to choose between vt(4)/sc(4) 2014-06-27 17:50:33 +00:00