Date: Wed, 20 Apr 2011 00:31:33 +0900 From: Taku YAMAMOTO <taku@tackymt.homeip.net> To: freebsd-acpi@freebsd.org Subject: [PATCH] Move scsuspend()/scresume() forward to EVENTHANDLERs Message-ID: <20110420003133.4dc391f6.taku@tackymt.homeip.net>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --Multipart=_Wed__20_Apr_2011_00_31_33_+0900_Cmw8Xf4egaiAIykN Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hi all, Now, thanks to jkim's work, we have power_suspend and power_resume EVENTHANDLERs since r220647. I think it's a good time to move scsuspend()/scresume() to that scheme, too. That is: * We can achieve definitive ordering between vga, drm and so on: no need to depend on scpm hackery with that scheme. * Especially combined with adasuspend() (since r220650) and in case of X server being paged out, we can easily mess up the video card in a intermediate state without earlier scsuspend(). A patch is attached. -- -|-__ YAMAMOTO, Taku | __ < <taku@tackymt.homeip.net> - A chicken is an egg's way of producing more eggs. - --Multipart=_Wed__20_Apr_2011_00_31_33_+0900_Cmw8Xf4egaiAIykN--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110420003133.4dc391f6.taku>