svn commit: r270850 - in head/sys: i386/i386 i386/include i386/isa x86/acpica
danfe at FreeBSD.org
Sat Aug 30 18:05:08 UTC 2014
On Sat, Aug 30, 2014 at 01:58:20PM -0400, John Baldwin wrote:
> On Saturday, August 30, 2014 05:48:38 PM John Baldwin wrote:
> > New Revision: 270850
> > URL: http://svnweb.freebsd.org/changeset/base/270850
> > Log:
> > Save and restore FPU state across suspend and resume. In earlier
> > revisions of this patch, resumectx() called npxresume() directly, but that
> > doesn't work because resumectx() runs with a non-standard %cs selector.
> > Instead, all of the FPU suspend/resume handling is done in C.
> This mostly fixes suspend and resume in X on a little 32-bit only netbook I
> have. I needed an additional patch to the i915 code to prevent it from
> tearing down its interrupt handler in suspend and re-establishing it during
> resume (this sort of thing is not needed in drivers and isn't safe because
> suspend runs pinned to CPU 0 and unregistering an interrupt needs to bind to
> the CPU the IDT vector is assigned to).
John, thanks for a lot for making more and more laptops sleep-ready, as this
will certainly help FreeBSD to be considered as a suitable platform for them.
More information about the svn-src-all