summaryrefslogtreecommitdiffstats
path: root/sys/lib/libkern/arch
diff options
context:
space:
mode:
authoroga <oga@openbsd.org>2010-03-30 17:40:55 +0000
committeroga <oga@openbsd.org>2010-03-30 17:40:55 +0000
commitb1dc29c468779022b20fc1b94eb937afd54d07c1 (patch)
treef930ea90082a574adf513e28c92be070d9925f32 /sys/lib/libkern/arch
parentAfter snprintf(3) call `dir' is no longer used so free it also on normal (diff)
downloadwireguard-openbsd-b1dc29c468779022b20fc1b94eb937afd54d07c1.tar.xz
wireguard-openbsd-b1dc29c468779022b20fc1b94eb937afd54d07c1.zip
Prevent the apmd/x races for good.
When we hit suspend time, go through all wsdisplays on the system. if they are in mode MAPPED, but not MODE_DUMBFB then if possible do a full vt switch to a !mapped vt, and prevent switching back until resume time. This has to be called from MD code because this involves userland running so that X can run the vt switch signal handler. This way, any case where we are using the "poke registers from userland" model, we will not be on the hardware when we go down, so the kernel can actually handle thing properly. Tested on several acpi laptops (by kettenis@ and ian@), x40 (me and beck@ at LEAST) and zaurus (me). Maybe others, but if so I forgot who at this time.. Idea from deraadt somewhere over the Faroe Islands (I thought of a similar thing myself a while ago). Much prompting from him. Ok and comments miod@
Diffstat (limited to 'sys/lib/libkern/arch')
0 files changed, 0 insertions, 0 deletions