Subject: CVS commit: src/sys/dev/wscons
To: None <source-changes@NetBSD.org>
From: Matthias Drochner <drochner@netbsd.org>
List: source-changes
Date: 01/14/2008 21:38:50
Module Name:	src
Committed By:	drochner
Date:		Mon Jan 14 21:38:50 UTC 2008

Modified Files:
	src/sys/dev/wscons: wsdisplay.c

Log Message:
On suspend/resume, just detach/attach the X server (or whatever might
be using the "syncops" protocol) rather than doing a full switch
to virtual screen 1. The latter doesn't have the expected result if
the X server is running on screen 1, and is too much policy for inside
the kernel anyway.
Introduce a mutex+condvar to synchronize these operations, to replace
the spltty()/tsleep(). (for now only used by the new functions,
should be extended to the normal vt switching code)


To generate a diff of this commit:
cvs rdiff -r1.114 -r1.115 src/sys/dev/wscons/wsdisplay.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.