Date: Wed, 3 Sep 2014 21:17:09 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r271053 - head/sys/i386/i386 Message-ID: <201409032117.s83LH9na069907@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jhb Date: Wed Sep 3 21:17:09 2014 New Revision: 271053 URL: http://svnweb.freebsd.org/changeset/base/271053 Log: Actually save and restore FPU state on APs during suspend and resume. Committed from: Atom-based HP netbook after resuming in X Modified: head/sys/i386/i386/mp_machdep.c Modified: head/sys/i386/i386/mp_machdep.c ============================================================================== --- head/sys/i386/i386/mp_machdep.c Wed Sep 3 20:53:11 2014 (r271052) +++ head/sys/i386/i386/mp_machdep.c Wed Sep 3 21:17:09 2014 (r271053) @@ -1522,15 +1522,11 @@ cpususpend_handler(void) cpu = PCPU_GET(cpuid); if (savectx(susppcbs[cpu])) { -#ifdef DEV_NPX - npxsuspend(&suspcbs[cpu]->pcb_fpususpend); -#endif + npxsuspend(&susppcbs[cpu]->pcb_fpususpend); wbinvd(); CPU_SET_ATOMIC(cpu, &suspended_cpus); } else { -#ifdef DEV_NPX - npxresume(&suspcbs[cpu]->pcb_fpususpend); -#endif + npxresume(&susppcbs[cpu]->pcb_fpususpend); pmap_init_pat(); PCPU_SET(switchtime, 0); PCPU_SET(switchticks, ticks);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201409032117.s83LH9na069907>