[PATCH] Move scsuspend()/scresume() forward to EVENTHANDLERs

Taku YAMAMOTO taku at tackymt.homeip.net
Tue Apr 19 15:31:38 UTC 2011


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 at tackymt.homeip.net>

      - A chicken is an egg's way of producing more eggs. -


More information about the freebsd-acpi mailing list