opnsense-src/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 Convert files to UTF-8 2012-01-15 13:23:18 +00:00
daemon Fix sos@'s name. 2015-01-07 21:44:57 +00:00
dragon
fade Convert files to UTF-8 2012-01-15 13:23:18 +00:00
fire
green Convert files to UTF-8 2012-01-15 13:23:18 +00:00
logo Convert files to UTF-8 2012-01-15 13:23:18 +00:00
rain Convert files to UTF-8 2012-01-15 13:23:18 +00:00
snake Convert files to UTF-8 2012-01-15 13:23:18 +00:00
star Convert files to UTF-8 2012-01-15 13:23:18 +00:00
warp Convert files to UTF-8 2012-01-15 13:23:18 +00:00
scgfbrndr.c
schistory.c Piggyback MIPS changes and add ARM syscons support for devices with 2012-08-25 23:59:31 +00:00
scmouse.c Snapshot. This passes the build test, but has not yet been finished or debugged. 2013-10-04 06:55:06 +00:00
scterm-teken.c Extend libteken to support CJK fullwidth characters. 2013-12-20 21:31:50 +00:00
scterm.c
scvesactl.c - Teach vesa(4) and dpms(4) about x86emu. [1] 2009-09-09 09:50:31 +00:00
scvgarndr.c On some generations of the Intel GPU, disabling of the VGA Display 2013-06-18 20:19:09 +00:00
scvidctl.c Add tty_set_winsize(). 2012-11-03 22:21:37 +00:00
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